Commit graph

3 commits

Author SHA1 Message Date
Research Assistant
802d34bff6 test(08-deep-helper-deployment): add smoke tests and fixtures
- Add conftest.py with test_vault fixture for deterministic test vault
- Add test_smoke.py with 14 regression tests covering:
  - setup wizard pip install step
  - doctor importability and env name checks
  - ld_deep.py import from deployed location
  - prepare produces scaffold with figure-map and chart-type-map
  - queue shows ready papers with correct ocr_status
  - doc commands extractable and executable
  - metadata fields (first_author, journal) populated
  - BBT PDF path resolution
- Fix zotero_key quote stripping in scan_deep_reading_queue
2026-04-24 14:34:10 +08:00
Research Assistant
981f5fa8ba fix(run_deep_reading): call validate_ocr_meta() before using ocr_status
- Replace direct meta.get('ocr_status') read with validate_ocr_meta() call
  in run_deep_reading() to properly validate OCR completion status
- Fixes bug where meta.json with ocr_status=done but missing files
  incorrectly marked paper as ready for deep reading
- validate_ocr_meta() checks 7 conditions before returning 'done':
  file existence, sizes, page markers, etc.
- done_incomplete status is correctly treated as blocked (not ready)
  by existing blocked logic at line 2810
- Add regression test: test_smoke_deep_reading_done_incomplete_is_blocked
2026-04-23 23:42:09 +08:00
Research Assistant
405fc3f127 test(05-02): add end-to-end smoke test suite covering full pipeline
Smoke tests (13 total):
- Setup validation (run_doctor returns 0/1, output checks)
- Selection sync (returns 0, scans exports, creates records)
- Index refresh (returns 0, generates formal Literature notes)
- OCR doctor L1-L3 (returns int code, detects missing token)
- Deep-reading queue (returns 0, produces 3-state output)
- CLI main entry (doctor/status return int, not sys.exit)

All tests use tmp_path fixtures, no real vault, no live network calls.
2026-04-23 18:46:28 +08:00