Skip to content

Commit de7e2d7

Browse files
committed
docs: fix inaccurate comment on django_db mark on fixtures
Fixes #541.
1 parent c0d2b79 commit de7e2d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/helpers.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ Markers
5656

5757
.. note::
5858

59-
If you want access to the Django database *inside a fixture*
60-
this marker will not help even if the function requesting your
61-
fixture has this marker applied. To access the database in a
62-
fixture, the fixture itself will have to request the ``db``,
63-
``transactional_db`` or ``django_db_reset_sequences`` fixture. See below
64-
for a description of them.
59+
If you want access to the Django database inside a *fixture*, this marker may
60+
or may not help even if the function requesting your fixture has this marker
61+
applied, depending on pytest's fixture execution order. To access the
62+
database in a fixture, it is recommended that the fixture explicitly request
63+
one of the ``db``, ``transactional_db`` or ``django_db_reset_sequences``
64+
fixtures. See below for a description of them.
6565

6666
.. note:: Automatic usage with ``django.test.TestCase``.
6767

0 commit comments

Comments
 (0)