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 a5b8acb commit 0af290dCopy full SHA for 0af290d
pytest_django/fixtures.py
@@ -180,12 +180,11 @@ def _set_suffix_to_test_databases(suffix):
180
181
if test_name == ":memory:":
182
continue
183
+ if test_name.endswith("_{}".format(suffix)):
184
+ continue
185
186
db_settings.setdefault("TEST", {})
- test_db_name = test_name
- if not test_name.endswith("_{}".format(suffix)):
187
- test_db_name = "{}_{}".format(test_name, suffix)
188
- db_settings["TEST"]["NAME"] = test_db_name
+ db_settings["TEST"]["NAME"] = "{}_{}".format(test_name, suffix)
189
190
191
# ############### User visible fixtures ################
0 commit comments