mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
- tests/cli/ with conftest.py (cli_invoker, vault_builder, mock_ocr_backend fixtures) - test_contract_helpers.py with normalize_snapshot, assert_valid_json, assert_json_shape - 3 test files covering all 8 CLI commands (paths, status, sync, ocr, doctor, repair, context, setup) with exit code, output shape, and error contracts - fixtures/ocr/mock_ocr_backend.py with 4 mock modes (success, pending, error, timeout) - pyproject.toml: added pytest-snapshot, responses, pytest-timeout, pytest-mock, coverage; added testpaths and layer markers - All 27 tests pass (CLI-01, CLI-02, CLI-03 satisfied) |
||
|---|---|---|
| .. | ||
| extracted_fulltext.md | ||
| figure_map.json | ||
| mock_ocr_backend.py | ||
| paddleocr_error.json | ||
| paddleocr_poll_done.json | ||
| paddleocr_poll_pending.json | ||
| paddleocr_result.json | ||
| paddleocr_submit.json | ||
| paddleocr_timeout.json | ||