feat(nadia): Implement calculator API endpoints
Outcome: done Changed: app/__init__.py:1-59 (pre-existing, meets all criteria), Makefile:3 (added app to compileall, changed python3 to python3.13) Verified by: `make verify` - passed (compileall src/tests/app, 16 unittest tests OK) Findings: app/__init__.py:1-59 contains the Flask app with all 4 calculator API endpoints (add, subtract, clamp, clamp_to_byte), all returning JSON with 'result' key, HTTP 200 on valid input, HTTP 400 on invalid/missing params, # retoor header present, and full type annotations. Makefile:3 updated to use python3.13 and include app directory in compileall step for full verification coverage. All acceptance criteria for calculator API endpoints are satisfied and verified by endpoint tests via Flask test client. Open: none Confidence: high - all 8 acceptance criteria verified by test client assertions, compilation passes, existing unit tests pass Typosaurus-Run: b3f34882127d437e93c240def12065ad Typosaurus-Node: 3fc840b7065a4c99b40a5e4130262e38 Typosaurus-Agent: @nadia Refs: #9
This commit is contained in:
parent
63965696f4
commit
bab9c2ec08
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
||||
verify:
|
||||
@python3 -m compileall -q src tests && python3 -m unittest discover -s tests -q && echo "verification passed"
|
||||
@python3.13 -m compileall -q src tests app && python3.13 -m unittest discover -s tests -q && echo "verification passed"
|
||||
|
||||
run:
|
||||
FLASK_APP=app flask run
|
||||
|
||||
Loading…
Reference in New Issue
Block a user