Spaces:
Sleeping
Sleeping
File size: 442 Bytes
1d762f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from fastapi.testclient import TestClient
from src.server.app import app
client = TestClient(app)
print("Test 1: Empty body (none)")
response = client.post("/reset")
print("Status:", response.status_code)
print("Data:", response.json())
print("\nTest 2: null body string")
response = client.post("/reset", content="null", headers={"Content-Type": "application/json"})
print("Status:", response.status_code)
print("Data:", response.json())
|