summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-05-31 07:40:54 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-27 07:44:27 +0200
commit6c0ee6179796aa67a2403d85f2759bd4d45c93bc (patch)
treeb505f8d05ae716475252c0499435fee185d1ed64 /docs/topics/testing
parentd783ce3d8df10b9b8c99d67418d45934238a49db (diff)
[4.1.x] Fixed docs build with sphinxcontrib-spelling 7.5.0+.
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked. Backport of ac90529cc58507d9a07610809a795ec5fc3cbf8c from main
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/advanced.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 9159463c36..2635ce445d 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -88,7 +88,7 @@ must ensure that they are configured correctly, by calling
For example, assuming the following class-based view:
.. code-block:: python
- :caption: views.py
+ :caption: ``views.py``
from django.views.generic import TemplateView
@@ -105,7 +105,7 @@ the view, then passing a ``request`` to ``setup()``, before proceeding with
your test's code:
.. code-block:: python
- :caption: tests.py
+ :caption: ``tests.py``
from django.test import RequestFactory, TestCase
from .views import HomeView
@@ -412,7 +412,7 @@ following structure::
Let's take a look inside a couple of those files:
.. code-block:: python
- :caption: runtests.py
+ :caption: ``runtests.py``
#!/usr/bin/env python
import os
@@ -440,7 +440,7 @@ command-line options for controlling verbosity, passing in specific test
labels to run, etc.
.. code-block:: python
- :caption: tests/test_settings.py
+ :caption: ``tests/test_settings.py``
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [