diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-01 02:23:39 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-01 02:23:39 -0400 |
| commit | 6c9959c34b403c2b1e3088d34b67bef5c79ee9fc (patch) | |
| tree | 56e726ab7e3786eba3e714aa13906bd83a812870 /docs/tutorials/wiki/tests.rst | |
| parent | 231f532746ceb64138448a722d97d2f49fa0030d (diff) | |
| download | pyramid-6c9959c34b403c2b1e3088d34b67bef5c79ee9fc.tar.gz pyramid-6c9959c34b403c2b1e3088d34b67bef5c79ee9fc.tar.bz2 pyramid-6c9959c34b403c2b1e3088d34b67bef5c79ee9fc.zip | |
fix wiki tests too
Diffstat (limited to 'docs/tutorials/wiki/tests.rst')
| -rw-r--r-- | docs/tutorials/wiki/tests.rst | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/docs/tutorials/wiki/tests.rst b/docs/tutorials/wiki/tests.rst index c843a0129..841baa8d1 100644 --- a/docs/tutorials/wiki/tests.rst +++ b/docs/tutorials/wiki/tests.rst @@ -52,8 +52,34 @@ 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: 9-18 + +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 +our shell's current working directory is the "tutorial" distribution +directory: + +On UNIX: + +.. code-block:: text + + $ ../bin/python setup.py develop + +On Windows: + +.. code-block:: text + + c:\pyramidtut\tutorial> ..\Scripts\python setup.py develop + +Once that command has completed successfully, we can run the tests +themselves: On UNIX: |
