aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/tests/test_app.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-16 17:53:52 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-16 17:53:52 +0100
commit71d1ea51a4e9ccafd56bdcb5dba126f2b1831a36 (patch)
tree354c4d5c077036b22db6d1a8717fdb1540807929 /thallium-backend/tests/test_app.py
parentAdd a basic litestar app (diff)
Move to fastapi & mono repo layout
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!"}