mirror of https://github.com/django/django.git
Fix broken alias testing test
This commit is contained in:
parent
8c12d51ea2
commit
7018bcfb71
|
@ -309,8 +309,8 @@ class AliasedDatabaseTeardownTest(unittest.TestCase):
|
||||||
old_create_test_db = DatabaseCreation.create_test_db
|
old_create_test_db = DatabaseCreation.create_test_db
|
||||||
try:
|
try:
|
||||||
destroyed_names = []
|
destroyed_names = []
|
||||||
DatabaseCreation.destroy_test_db = lambda self, old_database_name, verbosity=1, keepdb=False: destroyed_names.append(old_database_name)
|
DatabaseCreation.destroy_test_db = lambda self, old_database_name, verbosity=1, keepdb=False, serialize=True: destroyed_names.append(old_database_name)
|
||||||
DatabaseCreation.create_test_db = lambda self, verbosity=1, autoclobber=False, keepdb=False: self._get_test_db_name()
|
DatabaseCreation.create_test_db = lambda self, verbosity=1, autoclobber=False, keepdb=False, serialize=True: self._get_test_db_name()
|
||||||
|
|
||||||
db.connections = db.ConnectionHandler({
|
db.connections = db.ConnectionHandler({
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Reference in New Issue