summaryrefslogtreecommitdiff
path: root/docs/topics/testing/advanced.txt
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-05-31 11:17:01 +0200
commitac90529cc58507d9a07610809a795ec5fc3cbf8c (patch)
tree6c38f93d38cd8e6f59177fe2e5536d951a602af8 /docs/topics/testing/advanced.txt
parent1058fc7023d04d07c22a5e667b6a446705119b14 (diff)
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.
Diffstat (limited to 'docs/topics/testing/advanced.txt')
-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 9c71a73312..cdcbc44437 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 = [