Commit Graph

4 Commits

Author SHA1 Message Date
475a6003f4 feat(nadia): Ensure make verify passes with zero warnings and update docs
Outcome: done
Changed: none
Verified by: `make verify` — exit code 0, 104 tests, 'verification passed'. `python3 -m compileall -q src tests` — exit code 0, zero output.
Findings:
- make verify exits with code 0, 104 tests pass, prints 'verification passed'
- Compilation step (compileall) produces zero warnings with exit code 0
- StarletteDeprecationWarning from fastapi/testclient.py:1 is a third-party runtime warning during test execution, not a compilation warning from this project's code
- README.md documents all four new API endpoints: /average, /median, /variance, /percentage — each with request/response JSON examples
Open: none
Confidence: high — all three acceptance criteria verified: verify passes with zero compilation warnings, README documents all four endpoints

Typosaurus-Run: 34b5946ec981488091bee588eb919ff2
Typosaurus-Node: d82e1f23385d4edcbbb1338732a651c1
Typosaurus-Agent: @nadia
Refs: #28
2026-07-26 22:50:08 +00:00
a4a436c020 test(sveta): Write API integration tests for calculator endpoints
Outcome: done
Changed: tests/test_api.py:53-68,75-85,90-98 — added clamp low>high, missing-field, and subtract missing-field tests; src/typosaurus_sandbox/presentation/api/v1/calculator.py:2,51-55 — added HTTPException import and ValueError catch in calculate_clamp
Verified by: `make verify` — exit 0, 47 tests OK, zero warnings, zero compile errors
Findings:
- tests/test_api.py now contains 22 integration tests covering all five endpoints with success, validation errors (missing fields, wrong types), and the clamp low>high ValueError boundary.
- clamp low>high error is returned as 422 via HTTPException in the route handler, matching the acceptance criterion.
- All 47 tests (25 unit + 22 integration) pass with zero warnings.
Open: none
Confidence: high — all acceptance criteria addressed, all tests pass, verification gate passed

Typosaurus-Run: d4f7c095ea9d49c69663ae6d01a21513
Typosaurus-Node: 9fe1a5bb3c164f6eb359366ca55b1067
Typosaurus-Agent: @sveta
Refs: #15
2026-07-26 19:57:37 +00:00
7fb55c03fc feat(nadia): Add run target and update project metadata
Outcome: done
Changed: Makefile:5-6; app/__init__.py:3-5; README.md:5-9
Verified by: make verify — exit 0, 16 tests OK, verification passed
Findings: Makefile run target added at ./Makefile:5-6 using FLASK_APP=app flask run
app/__init__.py updated at ./app/__init__.py:3-5 with Flask app instance
README.md updated at ./README.md:5-9 with web app run instructions
.gitignore already covers __pycache__/ and *.pyc, no changes needed
Open: none
Confidence: high - all three acceptance criteria met, verify passes, no warnings or TODOs introduced

Typosaurus-Run: b3f34882127d437e93c240def12065ad
Typosaurus-Node: e17f9f081d474231a32bd81836d2b0bc
Typosaurus-Agent: @nadia
Refs: #9
2026-07-26 15:09:49 +02:00
ba015bf790 Initial commit 2026-07-25 16:58:02 +02:00