Implements #3, a /ping endpoint
This commit is contained in:
10
tests/test_ping.py
Normal file
10
tests/test_ping.py
Normal 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'
|
Reference in New Issue
Block a user