# SPDX-FileCopyrightText: 2026 LobotomyLabs # SPDX-License-Identifier: MPL-2.0 import pytest from fastapi.testclient import TestClient from classquiz import app client = TestClient(app) def test_ai_router_exists(): response = client.post("/api/v1/ai/generate", json={"topic": "Python", "num_questions": 1}) assert response.status_code in [200, 401, 502]