Skip to content

Commit 92058d9

Browse files
committed
docs: fix Sphinx warnings
1 parent df96ea4 commit 92058d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Compatibility
130130
database access was prevented on the cursor level. To be safer and prevent
131131
more cases, it is now prevented at the connection level. If you previously
132132
had tests which interacted with the databases without a database cursor, you
133-
will need to mark them with the :func:`pytest.mark.django_db` marker or
133+
will need to mark them with the ``pytest.mark.django_db`` marker or
134134
request the ``db`` fixture.
135135

136136
* The previously undocumented internal fixtures ``_django_db_setup``,

docs/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ django_db_blocker
246246

247247
.. warning::
248248
It does not manage transactions and changes made to the database will not
249-
be automatically restored. Using the :func:`pytest.mark.django_db` marker
249+
be automatically restored. Using the ``pytest.mark.django_db`` marker
250250
or :fixture:`db` fixture, which wraps database changes in a transaction and
251251
restores the state is generally the thing you want in tests. This marker
252252
can be used when you are trying to influence the way the database is

docs/helpers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ is configured to be in the containing Django project.
207207

208208
This fixture will ensure the Django database is set up. Only
209209
required for fixtures that want to use the database themselves. A
210-
test function should normally use the :py:func:`~pytest.mark.django_db`
210+
test function should normally use the ``pytest.mark.django_db``
211211
mark to signal it needs the database.
212212

213213
``transactional_db``
@@ -216,7 +216,7 @@ mark to signal it needs the database.
216216
This fixture can be used to request access to the database including
217217
transaction support. This is only required for fixtures which need
218218
database access themselves. A test function would normally use the
219-
:py:func:`~pytest.mark.django_db` mark to signal it needs the database.
219+
``pytest.mark.django_db`` mark to signal it needs the database.
220220

221221
``live_server``
222222
~~~~~~~~~~~~~~~

docs/managing_python_path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ first file is found.
2525

2626
If you have a custom project setup, have none or multiple ``manage.py`` files
2727
in your project, the automatic detection may not be correct. See
28-
:ref:`managing_the_python_path_explicilty` for more details on how to configure
28+
:ref:`managing_the_python_path_explicitly` for more details on how to configure
2929
your environment in that case.
3030

3131
.. _managing_the_python_path_explicitly:

0 commit comments

Comments
 (0)