aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_app.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-01 22:08:42 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-01 22:08:42 +0100
commit525887dd5da101fc6964019108f73bd3a6a8dec1 (patch)
treefe959805839020b99a624631c5e303ffa9fe0c44 /tests/test_app.py
parentUpdate and lock dependencies (diff)
Add a basic litestar app
Diffstat (limited to 'tests/test_app.py')
-rw-r--r--tests/test_app.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_app.py b/tests/test_app.py
new file mode 100644
index 0000000..c856c52
--- /dev/null
+++ b/tests/test_app.py
@@ -0,0 +1,8 @@
+from litestar.testing import TestClient
+
+from thallium.app import app
+
+
+def test_heartbeat() -> None:
+ with TestClient(app=app) as client:
+ assert client.get("/heartbeat").json() == {"detail": "I am alive!"}