2019-05-18 19:00:13 +02:00
|
|
|
from app.test.fixtures import app, client # noqa
|
2019-05-18 17:22:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
def test_app_creates(app): # noqa
|
|
|
|
assert app
|
|
|
|
|
|
|
|
|
|
|
|
def test_app_healthy(app, client): # noqa
|
|
|
|
with client:
|
2019-08-03 18:55:38 +02:00
|
|
|
resp = client.get("/health")
|
2019-05-18 17:22:18 +02:00
|
|
|
assert resp.status_code == 200
|
|
|
|
assert resp.is_json
|
2019-08-03 18:55:38 +02:00
|
|
|
assert resp.json == "healthy"
|