Skip to content

Commit a6fe9fa

Browse files
author
Oliver Sauder
committed
Adjust naming in documentation to django_db_reset_sequences
1 parent adc76ed commit a6fe9fa

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``.
@@ -228,8 +228,8 @@ transaction support. This is only required for fixtures which need
228228
database access themselves. A test function should normally use the
229229
``pytest.mark.django_db`` mark with ``transaction=True``.
230230

231-
``reset_sequences_db``
232-
~~~~~~~~~~~~~~~~~~~~~~
231+
``django_db_reset_sequences``
232+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
233233

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

254254
* ``db``
255255
* ``transactional_db``
256-
* ``reset_sequences_db``
256+
* ``django_db_reset_sequences``
257257

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

0 commit comments

Comments
 (0)