summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/tests.rst
diff options
context:
space:
mode:
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/