gitea-saas-core/tests
Claude 8620d4d36e gitea-saas-core#39: eval farm HTTP surface — register_eval_routes
Five routes symmetric with the factory front-end:
  POST /api/eval/batches                (funded 201 / unfunded 202 queued)
  GET  /api/eval/batches/<id>           status + per-task state
  GET  /api/eval/batches/<id>/results   the results table
  POST /api/eval/batches/<id>/cancel    stop draining + release the hold
  GET  /api/eval/health                 liveness, no auth

Auth delegates to gitea_saas.auth (issue #24 single path — no sixth
implementation): missing/blank key -> canonical 401; no key configured
at all -> 503 SERVICE_UNAVAILABLE (issue #38's assembly acceptance).

Unfunded submits now queue in pending_eval_batches (no Gitea issue is
ever created); flush_pending ships them after funding, exactly like a
fresh funded submit. Funded submits reserve eval_batch_hold_minor
(SAAS_EVAL_BATCH_HOLD_MINOR, default = debit floor) via the billing
core's reserve_hold; cancel releases it so the balance returns to its
pre-submit value exactly, and marks the batch cancelled (poll/emit
become no-ops). Rolled-back intake releases the hold too.

Schema: pending_eval_batches + eval_batch_cancels tables (idempotent
CREATE IF NOT EXISTS), hold_id column with a PRAGMA-guarded ALTER for
pre-existing DB files.
2026-09-01 03:58:29 -05:00
..
test_auth.py fix(#27): guard /dashboard through the shared auth path after !26 rebase 2026-08-26 06:43:17 -05:00
test_billing_core.py gitea-saas-core#16: billing core client API consistency (id, flat records, list_clients) 2026-08-25 06:09:46 -05:00
test_dashboard.py Consolidate all X-API-Key auth into gitea_saas/auth.py (#24) 2026-08-26 06:40:18 -05:00
test_delivery.py Consolidate all X-API-Key auth into gitea_saas/auth.py (#24) 2026-08-26 06:40:18 -05:00
test_gitea_client.py gitea-saas-core#30: isolated synthetic-merge review workspace 2026-08-29 15:21:43 -05:00
test_intake_eval.py gitea-saas-core#39: eval farm HTTP surface — register_eval_routes 2026-09-01 03:58:29 -05:00
test_intake_factory.py Consolidate all X-API-Key auth into gitea_saas/auth.py (#24) 2026-08-26 06:40:18 -05:00
test_review_policy.py gitea-saas-core#30: isolated synthetic-merge review workspace 2026-08-29 15:21:43 -05:00
test_review_workspace.py fix(#30): shell-quote workspace paths + sanitize temp prefix (bounce-fix) 2026-08-29 18:10:40 -05:00
test_reviewer.py gitea-saas-core#30: isolated synthetic-merge review workspace 2026-08-29 15:21:43 -05:00
test_server.py Consolidate all X-API-Key auth into gitea_saas/auth.py (#24) 2026-08-26 06:40:18 -05:00
test_stripe_client.py gitea-saas-core#3: tests: read create_client id key (bounce fix attempt 2, #16 rename) 2026-08-25 10:59:56 -05:00