aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/tests/test_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'thallium-backend/tests/test_app.py')
-rw-r--r--thallium-backend/tests/test_app.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/thallium-backend/tests/test_app.py b/thallium-backend/tests/test_app.py
new file mode 100644
index 0000000..c7c4937
--- /dev/null
+++ b/thallium-backend/tests/test_app.py
@@ -0,0 +1,9 @@
+from fastapi.testclient import TestClient
+
+from src.app import fastapi_app
+
+
+def test_heartbeat() -> None:
+ """Ensure the heartbeat works."""
+ with TestClient(app=fastapi_app) as client:
+ assert client.get("/heartbeat").json() == {"detail": "I am alive!"}