Reorganize to fastapi template
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
11
tests/test_health.py
Normal file
11
tests/test_health.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
def test_health() -> None:
|
||||
r = client.get("/api/health")
|
||||
assert r.status_code == 200
|
||||
assert r.json() == {"status": "ok"}
|
||||
Reference in New Issue
Block a user