File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments