summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingviews.rst
diff options
context:
space:
mode:
authorChristoph Zwerschke <cito@online.de>2011-06-05 17:29:52 +0200
committerChristoph Zwerschke <cito@online.de>2011-06-05 17:29:52 +0200
commit487f7e763935caf4ff9f2b6518512b9e915fe2c2 (patch)
tree829f38988bc8d35a5406e3d2281cac22a7713e94 /docs/tutorials/wiki2/definingviews.rst
parent879bb56558527e402bc8b0135ce2b40d24fe4a12 (diff)
downloadpyramid-487f7e763935caf4ff9f2b6518512b9e915fe2c2.tar.gz
pyramid-487f7e763935caf4ff9f2b6518512b9e915fe2c2.tar.bz2
pyramid-487f7e763935caf4ff9f2b6518512b9e915fe2c2.zip
Make tests in the Wiki2 tutorial a separate chapter, as for Wiki1.
Also add functional tests to the Wiki2 tutorial, similar to Wiki1.
Diffstat (limited to 'docs/tutorials/wiki2/definingviews.rst')
-rw-r--r--docs/tutorials/wiki2/definingviews.rst43
1 files changed, 0 insertions, 43 deletions
diff --git a/docs/tutorials/wiki2/definingviews.rst b/docs/tutorials/wiki2/definingviews.rst
index 8fd9a9399..cea376b77 100644
--- a/docs/tutorials/wiki2/definingviews.rst
+++ b/docs/tutorials/wiki2/definingviews.rst
@@ -341,46 +341,3 @@ Exception('Forced Exception')``). Then visit the error-raising view
in a browser. You should see an interactive exception handler in the
browser which allows you to examine values in a post-mortem mode.
-Adding Tests
-============
-
-Since we've added a good bit of imperative code here, it's useful to
-define tests for the views we've created. We'll change our tests.py
-module to look like this:
-
-.. literalinclude:: src/views/tutorial/tests.py
- :linenos:
- :language: python
-
-We can then run the tests using something like:
-
-.. code-block:: text
- :linenos:
-
- $ python setup.py test -q
-
-The expected output is something like:
-
-.. code-block:: text
- :linenos:
-
- running test
- running egg_info
- writing requirements to tutorial.egg-info/requires.txt
- writing tutorial.egg-info/PKG-INFO
- writing top-level names to tutorial.egg-info/top_level.txt
- writing dependency_links to tutorial.egg-info/dependency_links.txt
- writing entry points to tutorial.egg-info/entry_points.txt
- unrecognized .svn/entries format in
- reading manifest file 'tutorial.egg-info/SOURCES.txt'
- writing manifest file 'tutorial.egg-info/SOURCES.txt'
- running build_ext
- ......
- ----------------------------------------------------------------------
- Ran 6 tests in 0.181s
-
- OK
-
-
-
-