summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorCurtis Maloney <curtis@tinbrain.net>2018-09-11 03:00:34 +1000
committerTim Graham <timograham@gmail.com>2018-09-10 13:00:34 -0400
commitc49ea6f5911296dcb40190c905e38b43cdc7c7a3 (patch)
tree56d6341ed09e5d77cd3361bcc5275eab5733db4a /docs/topics/testing
parentf8ff529ee32c79b270176f5e8d7a3f6ef048ac31 (diff)
Refs #20910 -- Replaced snippet directive with code-block.
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 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 = [