mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Added a test to ensure that all blueprints have a registered before_request method.
Added a test for the status endpoint.
This commit is contained in:
13
tests/app/status/test_status.py
Normal file
13
tests/app/status/test_status.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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']
|
||||
Reference in New Issue
Block a user