blob: 82f40cc0471a14bda4d38854267583099b4575f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import pytest
from flask.testing import FlaskClient
@pytest.mark.remote
def test_index(client: FlaskClient):
resp = client.get("/")
assert resp.status_code == 200
@pytest.mark.remote
def test_about(client: FlaskClient):
resp = client.get("/about/")
assert resp.status_code == 200
@pytest.mark.remote
def test_not_found(client: FlaskClient):
resp = client.get("/some_path_that_does_not_exist/")
assert resp.status_code == 404
@pytest.mark.remote
def test_sitemaps(client: FlaskClient):
resp = client.get("/sitemap.xml")
assert resp.status_code == 200
|