summaryrefslogtreecommitdiffstats
path: root/tests/routes.py
blob: 47b99e30acd1020455ec6a9fee2295cdb4c5ba24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

import json
import pytest
import fatcat
import fatcat.sql
import tempfile
from fatcat.models import *
from fixtures import *


def test_static_routes(rich_app):
    app = rich_app

    for route in ('/health', '/robots.txt', '/', '/about'):
        rv = app.get(route)
        assert rv.status_code == 200

    assert app.get("/static/bogus/route").status_code == 404