feat: add AI quiz generation endpoint with httpx and OpenAI/Ollama support
PyTest / test (push) Has been cancelled
PyTest / test (push) Has been cancelled
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user