diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-31 07:40:54 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-06-27 08:04:25 +0200 |
| commit | 4d20d2f7c2b8e74c3e85bd0716ebdcb3b35a70e6 (patch) | |
| tree | 40722f3317489da559dce2c04da404f1fe61709d /docs/topics/testing/advanced.txt | |
| parent | 8a294ee2e0e30f073f764310c74899e385a302ec (diff) | |
[4.0.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/advanced.txt')
| -rw-r--r-- | docs/topics/testing/advanced.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 03aca22139..be8a06edf4 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 = [ |
