From dab68d8d69e4df872cd2a52ab2a93ee5fb364cc5 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 16 Jun 2007 11:20:15 +0000 Subject: [PATCH] Run syncdb before running tests on the populated database, to apply any new fixtures which are part of the svn checkout we're testing - Legacy-Id: 426 --- ietf/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ietf/tests.py b/ietf/tests.py index 86fd3f111..65ddc8479 100644 --- a/ietf/tests.py +++ b/ietf/tests.py @@ -10,6 +10,7 @@ import django.test.simple from django.test import TestCase from django.conf import settings from django.db import connection +from django.core import management import ietf.urls @@ -123,7 +124,9 @@ class UrlTestCase(TestCase): self.testdb = settings.DATABASE_NAME connection.close() settings.DATABASE_NAME = startup_database - connection.cursor() + # Install updated fixtures: + # Also has the side effect of creating the database connection. + management.syncdb(verbosity=1, interactive=False) def tearDown(self): # Revert to using the test database