Spaces:
Sleeping
Sleeping
File size: 243 Bytes
e4dedf8 | 1 2 3 4 5 6 7 8 9 10 11 | from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_root():
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "API is working!"}
|