feat: add AI quiz generation endpoint with httpx and OpenAI/Ollama support
PyTest / test (push) Has been cancelled

This commit is contained in:
2026-07-28 09:28:57 -04:00
parent 4d1f1d3165
commit d0ed79a986
3 changed files with 54 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# 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]