We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870112d commit 8be7989Copy full SHA for 8be7989
pytest_django/fixtures.py
@@ -182,7 +182,10 @@ def _set_suffix_to_test_databases(suffix):
182
continue
183
184
db_settings.setdefault("TEST", {})
185
- db_settings["TEST"]["NAME"] = "{}_{}".format(test_name, suffix)
+ test_db_name = test_name
186
+ if not test_name.endswith("_{}".format(suffix)):
187
+ test_db_name = "{}_{}".format(test_name, suffix)
188
+ db_settings["TEST"]["NAME"] = test_db_name
189
190
191
# ############### User visible fixtures ################
0 commit comments