Coverage for tests/snapcraft/tests_public.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import responses
2from flask_testing import TestCase
3from webapp.app import create_app
5# Make sure tests fail on stray responses.
6responses.mock.assert_all_requests_are_fired = True
9class StorePage(TestCase):
10 def create_app(self):
11 app = create_app(testing=True)
12 app.secret_key = "secret_key"
14 return app
16 @responses.activate
17 def test_index(self):
18 response = self.client.get("/")
20 assert response.status_code == 200
21 self.assert_template_used("index.html")