diff options
| author | 2024-08-16 17:53:52 +0100 | |
|---|---|---|
| committer | 2024-08-16 17:53:52 +0100 | |
| commit | 71d1ea51a4e9ccafd56bdcb5dba126f2b1831a36 (patch) | |
| tree | 354c4d5c077036b22db6d1a8717fdb1540807929 /thallium-backend/tests/test_app.py | |
| parent | Add 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.py | 9 |
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!"} |