Research Assistant
72cbdc3250
test(11-01): add test_path_normalization.py with 25 test methods
...
- TestBBTPathNormalization: 8 tests covering absolute Windows, storage: prefix,
bare relative, Chinese chars, spaces, backslash normalization, empty path,
absolute non-storage
- TestMainPdfIdentification: 6 tests covering title=PDF primary, largest file
fallback, first PDF fallback, no PDFs, single PDF, mixed PDF/non-PDF
- TestWikilinkGeneration: 6 tests covering basic wikilink, junction resolution,
forward slashes, Chinese filename, empty path, nonexistent file
- TestLoadExportRowsIntegration: 5 tests using fixture JSON files
- Fixtures: bbt_export_absolute.json, bbt_export_storage.json,
bbt_export_mixed.json
2026-04-24 20:30:32 +08:00
Research Assistant
3bd1c5ea69
feat(02-03): implement ocr_doctor() with L1-L4 diagnostics
...
- Add paperforge_lite/ocr_diagnostics.py with tiered L1-L4 checks
- L1: token presence, L2: URL reachability, L3: API schema validation
- L4: optional live PDF round-trip test with polling
- Add 7 mocked unit tests for all levels
- Include blank.pdf test fixture
2026-04-23 12:58:54 +08:00