diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-01 02:08:03 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-01 02:08:03 -0400 |
| commit | 05a1b4a37df7e855747f66174a472b0de3ce1c9e (patch) | |
| tree | d9ca781390b0ebffd33a7bd130444e3ff41a4b84 /docs/tutorials/wiki2/tests.rst | |
| parent | 371a670b02052dcbf42629f228373cae805b0dd3 (diff) | |
| download | pyramid-05a1b4a37df7e855747f66174a472b0de3ce1c9e.tar.gz pyramid-05a1b4a37df7e855747f66174a472b0de3ce1c9e.tar.bz2 pyramid-05a1b4a37df7e855747f66174a472b0de3ce1c9e.zip | |
- The Wiki2 tutorial "Tests" chapter had two bugs: it did not tell the user
to depend on WebTest, and 2 tests failed as the result of changes to
Pyramid itself. These issues have been fixed.
Diffstat (limited to 'docs/tutorials/wiki2/tests.rst')
| -rw-r--r-- | docs/tutorials/wiki2/tests.rst | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/tests.rst b/docs/tutorials/wiki2/tests.rst index 7a4e65529..8acf0d761 100644 --- a/docs/tutorials/wiki2/tests.rst +++ b/docs/tutorials/wiki2/tests.rst @@ -48,8 +48,17 @@ Running the Tests ================= We can run these tests by using ``setup.py test`` in the same way we did in -:ref:`running_tests`. Assuming our shell's current working directory is the -"tutorial" distribution directory: +:ref:`running_tests`. However, first we must edit our ``setup.py`` to +include a dependency on WebTest, which we've used in our ``tests.py``. +Change the ``requires`` list in ``setup.py`` to include ``WebTest``. + +.. literalinclude:: src/tests/setup.py + :linenos: + :language: python + :lines: 10-19 + +After we've added a dependency on WebTest in ``setup.py``, assuming our +shell's current working directory is the "tutorial" distribution directory: On UNIX: |
