You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: fix 16 stale-test failures from the token-meter migration
CI was red with 16 failures across three test files — all
test-harness staleness from the token-meter work (T4/T5), not
production bugs. No production code changed.
- test_rate_limit.py: T5's login gate 401'd anonymous uploads
before the rate-limiter ran. Apply the get_required_auth_tokens
-> get_optional_auth_tokens override on the freshly-reloaded app
inside _reload_app() (a module-level fixture would patch the
stale pre-reload app object).
- test_error_handling_scenarios.py: same T5 gate 401'd LLM-route
scenarios. Add the standard _satisfy_llm_route_auth autouse
override; no scenario expects a 401 so nothing is masked.
- test_resume_quota_enforcement.py: T4 loosened resume_parses /
resume_builder_sessions to UNLIMITED. Pin the pre-migration
finite caps in _fresh_quota_backend, matching the cap-pinning
in the sibling workspace/assistant quota-enforcement files.
The dedicated 401-gate coverage in test_llm_route_login_required.py
is untouched — no suite-wide override was added.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments