summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/tests.rst
diff options
context:
space:
mode:
authorPatricio Paez <pp@pp.com.mx>2012-03-14 13:58:17 -0700
committerPatricio Paez <pp@pp.com.mx>2012-03-14 13:58:17 -0700
commit58df8cb0697a00f88da347db8c09f7c0148f99c0 (patch)
tree7fc4084b23f42d0e85cd973623a8197db878ec9e /docs/tutorials/wiki2/tests.rst
parent03bfabdc81c04ecf0fc9637056d7b1db189c6e0a (diff)
downloadpyramid-58df8cb0697a00f88da347db8c09f7c0148f99c0.tar.gz
pyramid-58df8cb0697a00f88da347db8c09f7c0148f99c0.tar.bz2
pyramid-58df8cb0697a00f88da347db8c09f7c0148f99c0.zip
Removed populate tests from the SQL wiki tutorial
- Removed the main() settings parameter in populate.py - Updated the Tests chapter
Diffstat (limited to 'docs/tutorials/wiki2/tests.rst')
-rw-r--r--docs/tutorials/wiki2/tests.rst12
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/tutorials/wiki2/tests.rst b/docs/tutorials/wiki2/tests.rst
index 94d97d2d5..92544404c 100644
--- a/docs/tutorials/wiki2/tests.rst
+++ b/docs/tutorials/wiki2/tests.rst
@@ -34,18 +34,6 @@ tested in the unit tests, like logging in, logging out, checking that
the ``viewer`` user cannot add or edit pages, but the ``editor`` user
can, and so on.
-We must first modify ``main()`` in ``scripts/populate.py``, adding an
-optional ``settings`` argument so we can pass in a URI to a
-memory-resident database instead of our disk-based database we've
-populated; this allows us to run our tests with a clean database each
-time. Replace ``main()`` with this version which adds an argument and
-then uses it if set, and creates a ``Model`` for testing:
-
-.. literalinclude:: src/tests/tutorial/scripts/populate.py
- :lines: 24-36
- :linenos:
- :language: python
-
Viewing the results of all our edits to ``tests.py``
====================================================