Fixed tests when run in reverse.

Regression in 98f23a8af0.
This commit is contained in:
Mariusz Felisiak 2020-02-19 12:52:56 +01:00 committed by Carlton Gibson
parent 1e858adf7f
commit 4261907ff3
1 changed files with 3 additions and 3 deletions

View File

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