chore: sonar scan test #1
9
app/test_main.py
Normal file
9
app/test_main.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from fastapi.testclient import TestClient
|
||||||
|
from app.main import app
|
||||||
|
|
||||||
|
client = TestClient(app)
|
||||||
|
|
||||||
|
def test_health():
|
||||||
|
response = client.get("/health")
|
||||||
|
assert response.status_code == 200
|
||||||
|
|
||||||
Reference in New Issue
Block a user