mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 12:20:27 +08:00
Coverage gap: deeptutor/api/routers/co_writer.py had 246 missing lines (40.0%). Add tests/api/routers/test_co_writer_contract.py (40 cases): document CRUD request/response shapes, illegal-payload 4xx handling, export/import failure branches, edit/automark agent passthrough, and history/tool-calls endpoints. All storage and agent work is stubbed to tmp_path; no product code changed. Evidence: evidence/co-writer-tests-20261003/ (40 passed on origin/main ef2d9e5c3; no failing cases, contract currently holds). Co-authored-by: XZH <cto@xzh.ai>