diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-11-14 01:19:48 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-11-14 01:19:48 +0000 |
| commit | 38b6635fd101e51717d2daf7cc35f09590536cda (patch) | |
| tree | 30df2549d801dfc0ae82da74fb90899deb8cd583 /docs/narr/project.rst | |
| parent | eb6afe916a2c7456d4398e2f0df04ebacccd7f30 (diff) | |
| download | pyramid-38b6635fd101e51717d2daf7cc35f09590536cda.tar.gz pyramid-38b6635fd101e51717d2daf7cc35f09590536cda.tar.bz2 pyramid-38b6635fd101e51717d2daf7cc35f09590536cda.zip | |
- Change paster template ``tests.py`` to include a true unit test.
Retain old test as an integration test. Update documentation.
Diffstat (limited to 'docs/narr/project.rst')
| -rw-r--r-- | docs/narr/project.rst | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index c117d906a..bdfc0098a 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -109,14 +109,14 @@ Here's sample output from a test run:: reading manifest file 'MyProject.egg-info/SOURCES.txt' writing manifest file 'MyProject.egg-info/SOURCES.txt' running build_ext - . + .. ---------------------------------------------------------------------- - Ran 1 test in 0.647s + Ran 2 tests in 0.647s OK The tests are found in the ``tests.py`` module in your ``paster -create``-generated project. One sample test exists. +create``-generated project. Two sample tests exist. Runnning The Project Application -------------------------------- @@ -589,9 +589,10 @@ The ``tests.py`` module includes unit tests for your application. .. literalinclude:: MyProject/myproject/tests.py :linenos: -This sample ``tests.py`` file has a single unit test defined within -it. This is the code that is executed when you run ``setup.py test --q``. You may add more tests here as you build your application. You -are not required to write tests to use :mod:`repoze.bfg`, this file is -simply provided as convenience and example. +This sample ``tests.py`` file has a single unit test and a single +integration test defined within it. These two tests are executed when +you run ``setup.py test -q``. You may add more tests here as you +build your application. You are not required to write tests to use +:mod:`repoze.bfg`, this file is simply provided as convenience and +example. |
