Skip to content

Commit

Permalink
test: add status code checks for /statistics, /docs, and /openapi.jso…
Browse files Browse the repository at this point in the history
…n endpoints
  • Loading branch information
z0z0r4 committed Jan 26, 2025
1 parent 2ef6ccd commit 8fdedb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ def test_root(client: TestClient):

def test_statistics(client: TestClient):
response = client.get("/statistics")
assert response.status_code == 200

def test_docs(client: TestClient):
response = client.get("/docs")
assert response.status_code == 200
response = client.get("/openapi.json")
assert response.status_code == 200

0 comments on commit 8fdedb7

Please sign in to comment.