summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/tests.rst
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2018-08-21 01:44:55 -0500
committerGitHub <noreply@github.com>2018-08-21 01:44:55 -0500
commit820a752645b460ea8009b07a75c752ab09c53dec (patch)
tree14616d81a7abedfe523c057e71ed7b2aca680754 /docs/tutorials/wiki2/tests.rst
parentdf8598a2658632f709a64e8076cce02ca49de8e6 (diff)
parent254710cb716dccfe536b20d077e3cb79be19c6b3 (diff)
downloadpyramid-820a752645b460ea8009b07a75c752ab09c53dec.tar.gz
pyramid-820a752645b460ea8009b07a75c752ab09c53dec.tar.bz2
pyramid-820a752645b460ea8009b07a75c752ab09c53dec.zip
Merge pull request #3330 from stevepiercy/docs-code-style
Docs code style
Diffstat (limited to 'docs/tutorials/wiki2/tests.rst')
-rw-r--r--docs/tutorials/wiki2/tests.rst35
1 files changed, 17 insertions, 18 deletions
diff --git a/docs/tutorials/wiki2/tests.rst b/docs/tutorials/wiki2/tests.rst
index 84b123df1..f3f89fe9c 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::
@@ -95,25 +94,25 @@ Running the tests
We can run these tests similarly to how we did in :ref:`running_tests`, but first delete the SQLite database ``tutorial.sqlite``. If you do not delete the database, then you will see an integrity error when running the tests.
-On UNIX:
+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/