diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2018-09-11 03:00:34 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-10 14:38:08 -0400 |
| commit | 1853e2dbf2e290ec04e3389d523bbe4bad94a42e (patch) | |
| tree | c63e2721c7e691ae88a4ad9e5135b1f042bab857 /docs/topics/testing | |
| parent | 2b2474b75d63fcded37b872fcd2bb543d7502a8a (diff) | |
[2.1.x] Refs #20910 -- Replaced snippet directive with code-block.
Backport of c49ea6f5911296dcb40190c905e38b43cdc7c7a3 from master
Diffstat (limited to 'docs/topics/testing')
| -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 7e65a896f2..455c121acd 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -325,8 +325,8 @@ following structure:: Let's take a look inside a couple of those files: -.. snippet:: - :filename: runtests.py +.. code-block:: python + :caption: runtests.py #!/usr/bin/env python import os @@ -353,8 +353,8 @@ necessary to use the Django test runner. You may want to add command-line options for controlling verbosity, passing in specific test labels to run, etc. -.. snippet:: - :filename: tests/test_settings.py +.. code-block:: python + :caption: tests/test_settings.py SECRET_KEY = 'fake-key' INSTALLED_APPS = [ |
