@@ -129,7 +129,7 @@ def _django_db_fixture_helper(
129
129
if is_django_unittest (request ):
130
130
return
131
131
132
- if not transactional and "live_server" in request .funcargnames :
132
+ if not transactional and "live_server" in request .fixturenames :
133
133
# Do nothing, we get called with transactional=True, too.
134
134
return
135
135
@@ -187,11 +187,11 @@ def db(request, django_db_setup, django_db_blocker):
187
187
over each other in the following order (the last one wins): ``db``,
188
188
``transactional_db``, ``django_db_reset_sequences``.
189
189
"""
190
- if "django_db_reset_sequences" in request .funcargnames :
190
+ if "django_db_reset_sequences" in request .fixturenames :
191
191
request .getfixturevalue ("django_db_reset_sequences" )
192
192
if (
193
- "transactional_db" in request .funcargnames
194
- or "live_server" in request .funcargnames
193
+ "transactional_db" in request .fixturenames
194
+ or "live_server" in request .fixturenames
195
195
):
196
196
request .getfixturevalue ("transactional_db" )
197
197
else :
@@ -212,7 +212,7 @@ def transactional_db(request, django_db_setup, django_db_blocker):
212
212
over each other in the following order (the last one wins): ``db``,
213
213
``transactional_db``, ``django_db_reset_sequences``.
214
214
"""
215
- if "django_db_reset_sequences" in request .funcargnames :
215
+ if "django_db_reset_sequences" in request .fixturenames :
216
216
request .getfixturevalue ("django_db_reset_sequences" )
217
217
_django_db_fixture_helper (request , django_db_blocker , transactional = True )
218
218
@@ -410,7 +410,7 @@ def _live_server_helper(request):
410
410
411
411
It will also override settings only for the duration of the test.
412
412
"""
413
- if "live_server" not in request .funcargnames :
413
+ if "live_server" not in request .fixturenames :
414
414
return
415
415
416
416
request .getfixturevalue ("transactional_db" )
0 commit comments