summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Alexander Blumberg <larsblumberg@users.noreply.github.com>2017-08-14 10:43:01 +0200
committerLars Blumberg <lars.blumberg@talea.de>2017-08-14 12:25:51 +0200
commitacc4058e231f3e03a32b17f923c0d5b163c63b03 (patch)
tree5dc9072fd74de267e19b8924e9370bac8b526b1b
parent665d2ecdff976915a4f2864623d5546d41db7a4c (diff)
downloadpyramid-acc4058e231f3e03a32b17f923c0d5b163c63b03.tar.gz
pyramid-acc4058e231f3e03a32b17f923c0d5b163c63b03.tar.bz2
pyramid-acc4058e231f3e03a32b17f923c0d5b163c63b03.zip
Add a functional test for the static file
-rw-r--r--docs/quick_tutorial/static_assets.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/quick_tutorial/static_assets.rst b/docs/quick_tutorial/static_assets.rst
index b8482492d..3235f8561 100644
--- a/docs/quick_tutorial/static_assets.rst
+++ b/docs/quick_tutorial/static_assets.rst
@@ -43,13 +43,18 @@ Steps
.. literalinclude:: static_assets/tutorial/static/app.css
:language: css
-#. Make sure we haven't broken any existing code by running the tests:
+#. We add a functional test that asserts that the newly added static file is delivered:
+
+ .. literalinclude:: static_assets/tutorial/tests.py
+ :linenos:
+
+#. Now run the tests:
.. code-block:: bash
$ $VENV/bin/py.test tutorial/tests.py -q
....
- 4 passed in 0.50 seconds
+ 5 passed in 0.50 seconds
#. Run your Pyramid application with: