summaryrefslogtreecommitdiff
path: root/tests/test_factory.py
blob: bf2b321c4f29a36f8590b4ddfae779098706f787 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from sw import create_app


def test_config():
    assert not create_app().testing
    assert create_app({"TESTING": True}).testing


def test_hello(client):
    response = client.post("/auth/login")
    assert response.status_code == 422