Files
roboco/tests/unit
c0a2a0c871 [8df60dde] Rebase timeout-fix branch onto current main and restore test coverage (#816)
* [8df60dde] Fix RuntimeWarning in claim_review tests by stubbing the findings ledger session

Three claim_review tests (test_claim_review_returns_evidence_inline,
test_claim_review_marks_evidence_inspected,
test_claim_review_returns_gateway_timeout_on_slow_evidence) triggered
RuntimeWarnings about unawaited coroutines from findings.py because the
mock session's execute method was not configured for the
ReviewFindingsRepository calls that _build_qa_claim_evidence makes.
Added _stub_empty_ledger(task_svc.session) to each, matching the pattern
already used by the pass_review and fail_review tests.

* [8df60dde] Fix RuntimeWarning in evidence tests by stubbing the findings ledger session

* [8df60dde] test: add _stub_empty_ledger to slow-db-read evidence test to prevent RuntimeWarning

The third evidence test (test_evidence_returns_gateway_timeout_on_slow_db_read)
was missing the _stub_empty_ledger stub that the other two evidence tests
already have. Without it, the mock session's execute method is not
configured for the ReviewFindingsRepository calls that evidence() makes,
producing RuntimeWarnings about unawaited coroutines from findings.py:288.

---------

Co-authored-by: Backend Developer 2 <be-dev-2@roboco.tech>
2026-08-02 14:59:40 +00:00
..
2026-05-06 21:02:31 +02:00