summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Jochmaring <jjonas@mail.upb.de>2015-07-06 14:57:59 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2015-09-23 19:28:58 +0200
commit5f28e717e56c8f1c88f5d635d007ad26bba4cfe0 (patch)
treed1e535054afe6a85d49311efc40c894f91ac314b
parent07672ad6e6985b029c0ccf750f63576b488b95d7 (diff)
downloadbcfg2-5f28e717e56c8f1c88f5d635d007ad26bba4cfe0.tar.gz
bcfg2-5f28e717e56c8f1c88f5d635d007ad26bba4cfe0.tar.bz2
bcfg2-5f28e717e56c8f1c88f5d635d007ad26bba4cfe0.zip
update testsuite for django 1.7
-rw-r--r--testsuite/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/common.py b/testsuite/common.py
index 45cfcbf0b..9f51cc14f 100644
--- a/testsuite/common.py
+++ b/testsuite/common.py
@@ -217,6 +217,10 @@ class DBModelTestCase(Bcfg2TestCase):
""" Create the test database and sync the schema """
if self.models:
import django.core.management
+ import django
+ if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
+ django.setup()
+
django.core.management.call_command("syncdb", interactive=False,
verbosity=0)
self.assertTrue(