From 05a1b4a37df7e855747f66174a472b0de3ce1c9e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 1 Jul 2011 02:08:03 -0400 Subject: - 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. --- docs/tutorials/wiki2/tests.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'docs/tutorials/wiki2/tests.rst') 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: -- cgit v1.2.3