Files
notifications-api/tests/app/status/test_status.py

14 lines
405 B
Python
Raw Normal View History

from flask import json
def test_get_status_all_ok(client):
path = '/_status'
response = client.get(path)
assert response.status_code == 200
resp_json = json.loads(response.get_data(as_text=True))
assert resp_json['status'] == 'ok'
assert resp_json['db_version']
assert resp_json['travis_commit']
assert resp_json['travis_build_number']
assert resp_json['build_time']