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"}