parent
1e858adf7f
commit
4261907ff3
|
@ -5,7 +5,7 @@ from django.db import DEFAULT_DB_ALIAS, connection, connections
|
||||||
from django.db.backends.base.creation import (
|
from django.db.backends.base.creation import (
|
||||||
TEST_DATABASE_PREFIX, BaseDatabaseCreation,
|
TEST_DATABASE_PREFIX, BaseDatabaseCreation,
|
||||||
)
|
)
|
||||||
from django.test import SimpleTestCase
|
from django.test import SimpleTestCase, TransactionTestCase
|
||||||
|
|
||||||
from ..models import Object, ObjectReference
|
from ..models import Object, ObjectReference
|
||||||
|
|
||||||
|
@ -77,8 +77,8 @@ class TestDbCreationTests(SimpleTestCase):
|
||||||
creation.destroy_test_db(old_database_name, verbosity=0)
|
creation.destroy_test_db(old_database_name, verbosity=0)
|
||||||
|
|
||||||
|
|
||||||
class TestDeserializeDbFromString(SimpleTestCase):
|
class TestDeserializeDbFromString(TransactionTestCase):
|
||||||
databases = {'default'}
|
available_apps = ['backends']
|
||||||
|
|
||||||
def test_circular_reference(self):
|
def test_circular_reference(self):
|
||||||
# deserialize_db_from_string() handles circular references.
|
# deserialize_db_from_string() handles circular references.
|
||||||
|
|
Loading…
Reference in New Issue