travis-ci
45 of 45 new or added lines in 6 files covered. (100.0%)
3542 of 3564 relevant lines covered (99.38%)
3.95 hits per line
1 |
import six |
4✔ |
2 |
|
|
3 |
|
|
4 |
def close_django_connection(): |
4✔ |
5 |
if six.PY2:
|
4✔ |
6 |
from django import db |
1✔ |
7 |
db.connections.close_all() |
1✔ |
8 |
else:
|
|
9 |
from django.db import connection |
3✔ |
10 |
connection.close() |
3✔ |
11 |
|
|
12 |
|
|
13 |
def setup_django(): |
4✔ |
14 |
import django |
4✔ |
15 |
django.setup() |
4✔ |