MCPcopy Index your code
hub / github.com/realpython/discover-flask / test_index

Method test_index

tests/test_basic.py:11–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10 # Ensure that Flask was set up correctly
11 def test_index(self):
12 response = self.client.get('/login', content_type='html/text')
13 self.assertEqual(response.status_code, 200)
14
15 # Ensure that main page requires user login
16 def test_main_route_requires_login(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected