diff options
-rw-r--r-- | testsuite/common.py | 6 |
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") |