Completed
Push — main ( 254773...79af2c )
by Jochen
03:19
created

test_homepage()   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 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