Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | :Copyright: 2006-2020 Jochen Kupperschmidt |
||
3 | :License: Modified BSD, see LICENSE for details. |
||
4 | """ |
||
5 | |||
6 | import pytest |
||
7 | |||
8 | from tests.helpers import http_client |
||
9 | |||
10 | |||
11 | def test_homepage(site_app, site): |
||
12 | with http_client(site_app) as client: |
||
13 | response = client.get('/') |
||
14 | |||
15 | # By default, nothing is mounted on `/`, but at least check that |
||
16 | # the application boots up and doesn't return a server error. |
||
17 | assert response.status_code == 404 |
||
18 |