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
This commit is contained in:
parent
a337f59588
commit
dab68d8d69
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue