From 8fdedb7fe91956c9411a7c820d2c2a2ce377dd49 Mon Sep 17 00:00:00 2001 From: z0z0r4 Date: Sun, 26 Jan 2025 20:23:02 +0800 Subject: [PATCH] test: add status code checks for /statistics, /docs, and /openapi.json endpoints --- tests/test_root.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_root.py b/tests/test_root.py index a89218c..e700630 100644 --- a/tests/test_root.py +++ b/tests/test_root.py @@ -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 \ No newline at end of file