1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

blackened

This commit is contained in:
David Sanders 2024-03-21 00:25:25 +11:00
parent eb958c52f6
commit 6570ca3255

View File

@ -378,7 +378,9 @@ def teardown_databases(old_config, verbosity, parallel=0, keepdb=False):
if parallel > 1:
for index in range(parallel):
connection.settings_dict["NAME"] = test_database_name
settings_dict = connection.creation.get_test_db_clone_settings(str(index + 1))
settings_dict = connection.creation.get_test_db_clone_settings(
str(index + 1)
)
connection.settings_dict.update(settings_dict)
connection.close()
connection.creation.deserialize_db_from_string(serialized_data)
@ -391,7 +393,6 @@ def teardown_databases(old_config, verbosity, parallel=0, keepdb=False):
connection.close()
def get_runner(settings, test_runner_class=None):
test_runner_class = test_runner_class or settings.TEST_RUNNER
test_path = test_runner_class.split(".")