summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/tests.rst
diff options
context:
space:
mode:
authorkenmanheimer <ken.manheimer@gmail.com>2011-11-08 16:34:20 -0800
committerkenmanheimer <ken.manheimer@gmail.com>2011-11-08 16:34:20 -0800
commit9b215d25112e7f466512ebbcfb2007abe070c9f7 (patch)
tree10d5afe2c8e81e9b86bf2755ea55c1f22f4056de /docs/tutorials/wiki/tests.rst
parentbf1d00dcdc5bf49edb74c20dcb168a265c8b7118 (diff)
downloadpyramid-9b215d25112e7f466512ebbcfb2007abe070c9f7.tar.gz
pyramid-9b215d25112e7f466512ebbcfb2007abe070c9f7.tar.bz2
pyramid-9b215d25112e7f466512ebbcfb2007abe070c9f7.zip
Use active ("Run the Tests") rather than passive ("Running the Tests")
voice for the headings.
Diffstat (limited to 'docs/tutorials/wiki/tests.rst')
-rw-r--r--docs/tutorials/wiki/tests.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/tutorials/wiki/tests.rst b/docs/tutorials/wiki/tests.rst
index c03b6b958..941302d67 100644
--- a/docs/tutorials/wiki/tests.rst
+++ b/docs/tutorials/wiki/tests.rst
@@ -6,8 +6,8 @@ We will now add tests for the models and the views and a few functional
tests in the ``tests.py``. Tests ensure that an application works, and
that it continues to work after some changes are made in the future.
-Testing the Models
-==================
+Test the Models
+===============
We write tests for the model
classes and the appmaker. Changing ``tests.py``, we'll write a separate test
@@ -20,8 +20,8 @@ classes: one for the ``Page`` model named ``PageModelTests``, one for the
``Wiki`` model named ``WikiModelTests``, and one for the appmaker named
``AppmakerTests``.
-Testing the Views
-=================
+Test the Views
+==============
We'll modify our ``tests.py`` file, adding tests for each view function we
added above. As a result, we'll *delete* the ``ViewTests`` test in the file,
@@ -38,8 +38,8 @@ tested in the unit tests, like logging in, logging out, checking that
the ``viewer`` user cannot add or edit pages, but the ``editor`` user
can, and so on.
-Viewing the results of all our edits to ``tests.py``
-====================================================
+View the results of all our edits to ``tests.py``
+=================================================
Once we're done with the ``tests.py`` module, it will look a lot like the
below:
@@ -48,8 +48,8 @@ below:
:linenos:
:language: python
-Running the Tests
-=================
+Run the Tests
+=============
We can run these tests by using ``setup.py test`` in the same way we did in
:ref:`running_tests`. However, first we must edit our ``setup.py`` to