summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorPatricio Paez <pp@pp.com.mx>2012-12-13 07:08:23 -0600
committerPatricio Paez <pp@pp.com.mx>2012-12-13 07:08:23 -0600
commit2a98712048133353392b9e725a24499acd48d605 (patch)
tree248b0f38a736418bc60e1eec2ff6f6048c1da0e1 /docs/tutorials
parent6d0328aa397b24189230c6938adcdde307dfba76 (diff)
downloadpyramid-2a98712048133353392b9e725a24499acd48d605.tar.gz
pyramid-2a98712048133353392b9e725a24499acd48d605.tar.bz2
pyramid-2a98712048133353392b9e725a24499acd48d605.zip
Improvements to the ZODB tutorial Tests chapter
- Standardize with the SQL tutorial
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/wiki/tests.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/tutorials/wiki/tests.rst b/docs/tutorials/wiki/tests.rst
index 46d009d0f..7a019dd04 100644
--- a/docs/tutorials/wiki/tests.rst
+++ b/docs/tutorials/wiki/tests.rst
@@ -17,8 +17,8 @@ We write tests for the model classes and the appmaker. Changing
``tests.py``, we'll write a separate test class for each model class, and
we'll write a test class for the ``appmaker``.
-To do so, we'll retain the ``tutorial.tests.ViewTests`` class provided as a
-result of the ``zodb`` project generator. We'll add three test
+To do so, we'll retain the ``tutorial.tests.ViewTests`` class that was
+generated as part of the ``zodb`` scaffold. We'll add three test
classes: one for the ``Page`` model named ``PageModelTests``, one for the
``Wiki`` model named ``WikiModelTests``, and one for the appmaker named
``AppmakerTests``.
@@ -51,8 +51,8 @@ below:
:linenos:
:language: python
-Run the Tests
-=============
+Running 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
@@ -63,6 +63,7 @@ Change the ``requires`` list in ``setup.py`` to include ``WebTest``.
:linenos:
:language: python
:lines: 9-19
+ :emphasize-lines: 10
After we've added a dependency on WebTest in ``setup.py``, we need to rerun
``setup.py develop`` to get WebTest installed into our virtualenv. Assuming