neo-neo-todo/backend/tests/test_control.py

8 lines
214 B
Python
Raw Normal View History

from fastapi.testclient import TestClient
async def test_ping(client: TestClient):
response = client.get("/control/ping")
assert response.status_code == 200
assert response.json() == {"ping": "pong"}