[Python-modules-commits] [django-nose] 02/10: Call django.setup() befor running the tests.
Michael Fladischer
fladi at moszumanska.debian.org
Thu Jan 7 13:03:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository django-nose.
commit d039769e81eba6f09d1dd8dd2630ab027df6a3bc
Author: Brian May <bam at debian.org>
Date: Thu Oct 8 08:54:27 2015 -0700
Call django.setup() befor running the tests.
Last-Update: 2014-09-29
Forwarded: no
Bug-Debian: https://bugs.debian.org/763252
Patch-Name: django17.patch
---
testapp/runtests.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testapp/runtests.py b/testapp/runtests.py
index b1ac91e..b3208a4 100755
--- a/testapp/runtests.py
+++ b/testapp/runtests.py
@@ -2,6 +2,7 @@
"""Configure enough Django to run the test suite."""
import sys
+import django
from django.conf import settings
if not settings.configured:
@@ -21,4 +22,5 @@ def runtests(*test_labels):
if __name__ == '__main__':
+ django.setup()
runtests(*sys.argv[1:])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-nose.git
More information about the Python-modules-commits
mailing list