From ab8b801d5ac13feac86219ad8860f0426140d0de Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Sat, 9 Jan 2021 07:55:02 -0800 Subject: Update Quick Tutorial and Quick Tour cookiecutter steps --- docs/quick_tour/package/tests/test_functional.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/quick_tour/package/tests/test_functional.py (limited to 'docs/quick_tour/package/tests/test_functional.py') diff --git a/docs/quick_tour/package/tests/test_functional.py b/docs/quick_tour/package/tests/test_functional.py new file mode 100644 index 000000000..bac5d63f4 --- /dev/null +++ b/docs/quick_tour/package/tests/test_functional.py @@ -0,0 +1,7 @@ +def test_root(testapp): + res = testapp.get('/', status=200) + assert b'Pyramid' in res.body + +def test_notfound(testapp): + res = testapp.get('/badurl', status=404) + assert res.status_code == 404 -- cgit v1.2.3