diff options
| author | 2024-08-01 22:08:42 +0100 | |
|---|---|---|
| committer | 2024-08-01 22:08:42 +0100 | |
| commit | 525887dd5da101fc6964019108f73bd3a6a8dec1 (patch) | |
| tree | fe959805839020b99a624631c5e303ffa9fe0c44 /tests/test_app.py | |
| parent | Update and lock dependencies (diff) | |
Add a basic litestar app
Diffstat (limited to 'tests/test_app.py')
| -rw-r--r-- | tests/test_app.py | 8 |
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!"} |