- Reorganized folder structure so routes live in the same folder - Set up pytest fixtures for future use
8 lines
214 B
Python
8 lines
214 B
Python
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"}
|