Co-authored-by: bot-backend <bot-backend@gendsgn.local> Co-committed-by: bot-backend <bot-backend@gendsgn.local>
10 lines
250 B
Python
10 lines
250 B
Python
from fastapi.testclient import TestClient
|
|
|
|
from app.main import app
|
|
|
|
|
|
def test_ping() -> None:
|
|
client = TestClient(app)
|
|
response = client.get("/api/v1/ping")
|
|
assert response.status_code == 200
|
|
assert response.json() == {"pong": True}
|