from fastapi.testclient import TestClient from api.main import app client = TestClient(app) def test_analytics(): response = client.post("/api/show-analytics", json={}) print(response.json()) assert response.status_code == 200