summaryrefslogtreecommitdiff
path: root/tests/test_django.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-15 16:15:39 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-15 16:17:14 +0200
commitb72fa40e52f3b767144b11f1d83c36d417f023d8 (patch)
tree4233f832395b2ee9a5bb3034b55dd404f4371d61 /tests/test_django.py
parent94d7defa820b69152fb5aeadb3f5ccc3611158fa (diff)
downloadfactory-boy-b72fa40e52f3b767144b11f1d83c36d417f023d8.tar
factory-boy-b72fa40e52f3b767144b11f1d83c36d417f023d8.tar.gz
Fix coverage
Diffstat (limited to 'tests/test_django.py')
-rw-r--r--tests/test_django.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_django.py b/tests/test_django.py
index aacde76..70bc376 100644
--- a/tests/test_django.py
+++ b/tests/test_django.py
@@ -28,7 +28,7 @@ import factory.django
try:
import django
-except ImportError:
+except ImportError: # pragma: no cover
django = None
@@ -43,7 +43,7 @@ if django is not None:
from django.test import simple as django_test_simple
from django.test import utils as django_test_utils
from .djapp import models
-else:
+else: # pragma: no cover
django_test = unittest
class Fake(object):
@@ -58,7 +58,7 @@ test_state = {}
def setUpModule():
- if django is None:
+ if django is None: # pragma: no cover
return
django_test_utils.setup_test_environment()
runner = django_test_simple.DjangoTestSuiteRunner()
@@ -70,7 +70,7 @@ def setUpModule():
def tearDownModule():
- if django is None:
+ if django is None: # pragma: no cover
return
runner = test_state['runner']
runner_state = test_state['runner_state']