From 3630b1ebd981a994b83689a6becb9922f1b20f0a Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 8 Jan 2020 02:00:20 -0800 Subject: sync cookiecutter to starter project `myproject` --- docs/narr/myproject/tests/test_views.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/narr/myproject/tests/test_views.py (limited to 'docs/narr/myproject/tests/test_views.py') diff --git a/docs/narr/myproject/tests/test_views.py b/docs/narr/myproject/tests/test_views.py new file mode 100644 index 000000000..1fd9db8ab --- /dev/null +++ b/docs/narr/myproject/tests/test_views.py @@ -0,0 +1,13 @@ +from myproject.views.default import my_view +from myproject.views.notfound import notfound_view + + +def test_my_view(app_request): + info = my_view(app_request) + assert app_request.response.status_int == 200 + assert info['project'] == 'myproject' + +def test_notfound_view(app_request): + info = notfound_view(app_request) + assert app_request.response.status_int == 404 + assert info == {} -- cgit v1.2.3