summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-08-18 18:27:40 -0700
committerSteve Piercy <web@stevepiercy.com>2018-08-18 18:27:40 -0700
commit72eb0abbdb6b2c56c7b731edb7006416316b9790 (patch)
treeab68ef9cd7738c825fa5730a947eba0363cbef54 /docs/tutorials
parentdc1071af60355462a0cfe690ea4f0c11b8efe16a (diff)
downloadpyramid-72eb0abbdb6b2c56c7b731edb7006416316b9790.tar.gz
pyramid-72eb0abbdb6b2c56c7b731edb7006416316b9790.tar.bz2
pyramid-72eb0abbdb6b2c56c7b731edb7006416316b9790.zip
Clean up code-blocks in tutorials/wiki2/tests
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/wiki2/tests.rst33
1 files changed, 16 insertions, 17 deletions
diff --git a/docs/tutorials/wiki2/tests.rst b/docs/tutorials/wiki2/tests.rst
index 84b123df1..f856f837e 100644
--- a/docs/tutorials/wiki2/tests.rst
+++ b/docs/tutorials/wiki2/tests.rst
@@ -53,33 +53,32 @@ View the results of all our edits to ``tests`` subpackage
Create ``tutorial/tests/test_views.py`` such that it appears as follows:
.. literalinclude:: src/tests/tutorial/tests/test_views.py
- :linenos:
- :language: python
+ :linenos:
+ :language: python
Create ``tutorial/tests/test_functional.py`` such that it appears as follows:
.. literalinclude:: src/tests/tutorial/tests/test_functional.py
- :linenos:
- :language: python
+ :linenos:
+ :language: python
Create ``tutorial/tests/test_initdb.py`` such that it appears as follows:
.. literalinclude:: src/tests/tutorial/tests/test_initdb.py
- :linenos:
- :language: python
+ :linenos:
+ :language: python
Create ``tutorial/tests/test_security.py`` such that it appears as follows:
.. literalinclude:: src/tests/tutorial/tests/test_security.py
- :linenos:
- :language: python
+ :linenos:
+ :language: python
Create ``tutorial/tests/test_user_model.py`` such that it appears as follows:
.. literalinclude:: src/tests/tutorial/tests/test_user_model.py
- :linenos:
- :language: python
-
+ :linenos:
+ :language: python
.. note::
@@ -99,21 +98,21 @@ On UNIX:
.. code-block:: bash
- $ rm tutorial.sqlite
- $ $VENV/bin/py.test -q
+ rm tutorial.sqlite
+ $VENV/bin/py.test -q
On Windows:
.. code-block:: doscon
- c:\tutorial> del tutorial.sqlite
- c:\tutorial> %VENV%\Scripts\py.test -q
+ del tutorial.sqlite
+ %VENV%\Scripts\py.test -q
The expected result should look like the following:
.. code-block:: text
- ................................
- 32 passed in 9.90 seconds
+ ................................
+ 32 passed in 9.90 seconds
.. _webtest: https://docs.pylonsproject.org/projects/webtest/en/latest/