1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-09 14:46:01 +02:00

Add /status route

Currently this only prints the API version.
This commit is contained in:
2020-12-22 11:30:09 +02:00
parent a9d2a6d9be
commit 4b1398c67f
3 changed files with 21 additions and 0 deletions

View File

@ -34,3 +34,12 @@ def test_get_swagger_ui(client):
assert isinstance(response.content, bytes)
assert response.status_code == 200
def test_get_status(client):
"""Test requesting the status page."""
response = client.simulate_get("/status")
assert isinstance(response.content, bytes)
assert response.status_code == 200