lllin000_PaperForge/tests/cli
Research Assistant ab7ac0d6ab feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration
- 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)
2026-05-08 23:32:03 +08:00
..
snapshots/test_json_contracts feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
__init__.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
conftest.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
test_contract_helpers.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
test_error_codes.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
test_json_contracts.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00
test_text_contracts.py feat(52-golden-datasets-cli-contracts): add CLI contract tests with snapshot integration 2026-05-08 23:32:03 +08:00