neo-neo-todo/backend/tests/test_control.py
minhtrannhat 49c83fa287
feat(api+testing): select member by email
- Reorganized folder structure so routes live in the same folder
- Set up pytest fixtures for future use
2024-03-01 20:14:20 -05:00

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