Skip to content

Add backend API validation tests#63

Open
MyouzzZ wants to merge 1 commit into
PolymorphicAI:mainfrom
MyouzzZ:codex/backend-api-tests-9-10-11-20260626
Open

Add backend API validation tests#63
MyouzzZ wants to merge 1 commit into
PolymorphicAI:mainfrom
MyouzzZ:codex/backend-api-tests-9-10-11-20260626

Conversation

@MyouzzZ

@MyouzzZ MyouzzZ commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • add a pytest/FastAPI TestClient suite for the root health endpoint, generate-cards request validation, and quiz answer validation
  • force offline mode and monkeypatch AI card generation in tests so no real Gemini API key is required
  • document the backend test command and add test dependencies to backend requirements

Closes #9.
Closes #10.
Closes #11.

Validation

  • .\.venv\Scripts\python.exe -m pytest tests\test_backend_api.py -q (11 passed, 1 PyPDF2 deprecation warning)
  • git diff --check -- README.md backend/requirements.txt tests/test_backend_api.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for quiz answer validation endpoint Add tests for generate-cards request validation Add basic backend tests for API health endpoint

1 participant