Skip to content

Commit b501196

Browse files
Oliver Sauderblueyed
authored andcommitted
Adjust naming in documentation to django_db_reset_sequences
1 parent f62b950 commit b501196

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/helpers.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ of the test. This behavior is the same as Django's standard
2626

2727
In order for a test to have access to the database it must either
2828
be marked using the ``django_db`` mark or request one of the ``db``,
29-
``transactional_db`` or ``reset_sequences_db`` fixtures. Otherwise the
29+
``transactional_db`` or ``django_db_reset_sequences`` fixtures. Otherwise the
3030
test will fail when trying to access the database.
3131

3232
:type transaction: bool
@@ -53,7 +53,7 @@ test will fail when trying to access the database.
5353
this marker will not help even if the function requesting your
5454
fixture has this marker applied. To access the database in a
5555
fixture, the fixture itself will have to request the ``db``,
56-
``transactional_db`` or ``reset_sequences_db`` fixture. See below
56+
``transactional_db`` or ``django_db_reset_sequences`` fixture. See below
5757
for a description of them.
5858

5959
.. note:: Automatic usage with ``django.test.TestCase``.
@@ -230,8 +230,8 @@ transaction support. This is only required for fixtures which need
230230
database access themselves. A test function should normally use the
231231
``pytest.mark.django_db`` mark with ``transaction=True``.
232232

233-
``reset_sequences_db``
234-
~~~~~~~~~~~~~~~~~~~~~~
233+
``django_db_reset_sequences``
234+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235235

236236
This fixture provides the same transactional database access as
237237
``transactional_db``, with additional support for reset of auto increment
@@ -255,7 +255,7 @@ also directly concatenate a string to form a URL: ``live_server +
255255

256256
* ``db``
257257
* ``transactional_db``
258-
* ``reset_sequences_db``
258+
* ``django_db_reset_sequences``
259259

260260
In addition, using ``live_server`` will also trigger transactional
261261
database access, if not specified.

0 commit comments

Comments
 (0)