1515
1616__all__ = [
1717 "django_db_setup" ,
18- "db " ,
19- "transactional_db " ,
18+ "django_db " ,
19+ "django_transactional_db " ,
2020 "django_db_reset_sequences" ,
21- "admin_user " ,
21+ "django_admin_user " ,
2222 "django_user_model" ,
2323 "django_username_field" ,
24- "client " ,
25- "admin_client " ,
26- "rf " ,
27- "settings " ,
28- "live_server " ,
24+ "django_client " ,
25+ "django_admin_client " ,
26+ "django_rf " ,
27+ "django_settings " ,
28+ "django_live_server " ,
2929 "_live_server_helper" ,
3030 "django_assert_num_queries" ,
3131 "django_assert_max_num_queries" ,
@@ -157,7 +157,7 @@ def _disable_native_migrations():
157157
158158
159159@pytest .fixture (scope = "function" )
160- def db (request , django_db_setup , django_db_blocker ):
160+ def django_db (request , django_db_setup , django_db_blocker ):
161161 """Require a django test database.
162162
163163 This database will be setup with the default fixtures and will have
@@ -183,7 +183,7 @@ def db(request, django_db_setup, django_db_blocker):
183183
184184
185185@pytest .fixture (scope = "function" )
186- def transactional_db (request , django_db_setup , django_db_blocker ):
186+ def django_transactional_db (request , django_db_setup , django_db_blocker ):
187187 """Require a django test database with transaction support.
188188
189189 This will re-initialise the django database for each test and is
@@ -220,7 +220,7 @@ def django_db_reset_sequences(request, django_db_setup, django_db_blocker):
220220
221221
222222@pytest .fixture ()
223- def client ():
223+ def django_client ():
224224 """A Django test client instance."""
225225 skip_if_no_django ()
226226
@@ -244,7 +244,7 @@ def django_username_field(django_user_model):
244244
245245
246246@pytest .fixture ()
247- def admin_user (db , django_user_model , django_username_field ):
247+ def django_admin_user (db , django_user_model , django_username_field ):
248248 """A Django admin user.
249249
250250 This uses an existing user with username "admin", or creates a new one with
@@ -267,7 +267,7 @@ def admin_user(db, django_user_model, django_username_field):
267267
268268
269269@pytest .fixture ()
270- def admin_client (db , admin_user ):
270+ def django_admin_client (db , admin_user ):
271271 """A Django test client logged in as an admin user."""
272272 from django .test .client import Client
273273
@@ -277,7 +277,7 @@ def admin_client(db, admin_user):
277277
278278
279279@pytest .fixture ()
280- def rf ():
280+ def django_rf ():
281281 """RequestFactory instance"""
282282 skip_if_no_django ()
283283
@@ -320,7 +320,7 @@ def finalize(self):
320320
321321
322322@pytest .yield_fixture ()
323- def settings ():
323+ def django_settings ():
324324 """A Django settings object which restores changes after the testrun"""
325325 skip_if_no_django ()
326326
@@ -330,7 +330,7 @@ def settings():
330330
331331
332332@pytest .fixture (scope = "session" )
333- def live_server (request ):
333+ def django_live_server (request ):
334334 """Run a live Django server in the background during tests
335335
336336 The address the server is started from is taken from the
0 commit comments