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

tests.integration.blueprints.site.test_homepage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_homepage() 0 7 2
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