init commit. Skeleton prepared
This commit is contained in:
10
services/payments/tests/test_health.py
Normal file
10
services/payments/tests/test_health.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from fastapi.testclient import TestClient
|
||||
from app.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
def test_health():
|
||||
r = client.get("/health")
|
||||
assert r.status_code == 200
|
||||
data = r.json()
|
||||
assert data.get("status") == "ok"
|
||||
Reference in New Issue
Block a user