summaryrefslogtreecommitdiff
path: root/docs/topics/testing/advanced.txt
diff options
context:
space:
mode:
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 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 = [