1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #30413 -- Fixed test database signature on SQLite when test database name is provided.

Previously, the same signature was created for multiple in-memory
databases on SQLite when they had tests databases names
DATABASES['TEST']['NAME'].
This commit is contained in:
Farhaan Bukhsh
2019-11-20 23:07:10 +05:30
committed by Mariusz Felisiak
parent 62254c5202
commit 664c98f1f8
2 changed files with 20 additions and 0 deletions

View File

@@ -98,4 +98,6 @@ class DatabaseCreation(BaseDatabaseCreation):
sig = [self.connection.settings_dict['NAME']]
if self.is_in_memory_db(test_database_name):
sig.append(self.connection.alias)
else:
sig.append(test_database_name)
return tuple(sig)