Linted .py files
This commit is contained in:
13
tests/test_health.py
Normal file
13
tests/test_health.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Tiny test to pass CI, just checks the health endpoint to ensure API running.
|
||||
#
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
|
||||
def test_healthz():
|
||||
client = TestClient(app)
|
||||
r = client.get("/healthz")
|
||||
assert r.status_code == 200
|
||||
assert r.json() == {"ok": True}
|
Reference in New Issue
Block a user