Implements #3, a /ping endpoint

This commit is contained in:
2023-01-13 09:30:03 +00:00
parent 969ba0f64c
commit 9b85bfabdb
2 changed files with 19 additions and 0 deletions

10
tests/test_ping.py Normal file
View File

@ -0,0 +1,10 @@
def test_ping(client, mocker, valid_credentials):
'''
Test application health check
'''
response = client.get("/ping",
headers={"Authorization":
"Basic " + valid_credentials})
assert response.json['operation'] == 'ping'