rowing.py and jobs.py repeated the same call, error mapping, fence stripping and validation; that now lives in claude.ask_json, and the internal routes share one wrapper and one exception handler in main.py. Add /internal/email/classify, which takes over the email pipeline's Claude call from the Go backend (prompt ported verbatim, plus a sentence fencing the email off as data). The internal-only guard is now a dependency, so a request that came through nginx gets 404 even when its body is invalid, where it used to get 422. requirements-dev.txt adds pytest and httpx on top of requirements.txt so the tests run on a host; the image still installs only requirements.txt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
533 B
Plaintext
14 lines
533 B
Plaintext
# What the test suite (python/tests) needs on top of the runtime dependencies.
|
|
# Kept out of requirements.txt so the image stays slim: the Dockerfile installs
|
|
# only that file. Locally:
|
|
#
|
|
# pip install -r requirements-dev.txt
|
|
# python -m pytest tests -q
|
|
-r requirements.txt
|
|
|
|
pytest==9.0.3
|
|
# fastapi.testclient.TestClient is built on httpx and refuses to import
|
|
# without it. Nothing at runtime pulls it in: the Anthropic SDK brings httpx2,
|
|
# a different package, which is what the tests import for request objects.
|
|
httpx==0.28.1
|