From 4fe054c169aa697b65784ea4096542be3f6edb86 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 7 Sep 2012 09:10:04 -0400 Subject: testsuite: fixed syncdb for Django 1.4 --- testsuite/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite') 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") -- cgit v1.2.3-1-g7c22