summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-07 09:10:04 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-07 09:39:34 -0400
commit4fe054c169aa697b65784ea4096542be3f6edb86 (patch)
tree17749b1fab63faf3d67f0a7a09c0d3f620d3a570 /testsuite
parent3e9f06492b1d53edf822fa9bdacd06e2fbb146d1 (diff)
downloadbcfg2-4fe054c169aa697b65784ea4096542be3f6edb86.tar.gz
bcfg2-4fe054c169aa697b65784ea4096542be3f6edb86.tar.bz2
bcfg2-4fe054c169aa697b65784ea4096542be3f6edb86.zip
testsuite: fixed syncdb for Django 1.4
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/common.py b/testsuite/common.py
index 9af5e2bc7..cf2e9fcd6 100644
--- a/testsuite/common.py
+++ b/testsuite/common.py
@@ -219,9 +219,9 @@ class DBModelTestCase(Bcfg2TestCase):
def test_syncdb(self):
# create the test database
setup_environ(Bcfg2.settings)
- from django.core.management.commands import syncdb
- cmd = syncdb.Command()
- cmd.handle_noargs(interactive=False)
+ import django.core.management
+ django.core.management.call_command("syncdb", interactive=False,
+ verbosity=0)
self.assertTrue(os.path.exists(Bcfg2.settings.DATABASE_NAME))
@skipUnless(has_django, "Django not found, skipping")