mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fixed tests when run in reverse.
Regression in 98f23a8af0be7e87535426c5c83058e2682bfdf8.
This commit is contained in:
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…
x
Reference in New Issue
Block a user