Skip to content

Add importer unit tests, loosen cibutler asserts, bump to 0.8.2 - #23

Merged
hutchins merged 1 commit into
mainfrom
fix/test-maintenance
Apr 24, 2026
Merged

Add importer unit tests, loosen cibutler asserts, bump to 0.8.2#23
hutchins merged 1 commit into
mainfrom
fix/test-maintenance

Conversation

@hutchins

Copy link
Copy Markdown
Owner

Summary

  • New unit tests for two importer helpers previously only exercised via pipeline/integration tests: ImageHandler (29 tests) and LeafpressMarkdownConverter (12 tests).
  • Loosened hard-coded page-count asserts in test_cibutler_integration.py from == 14 to >= 14 so the suite tolerates new pages added upstream in the cibutler docs repo.
  • Reformatted tests/test_cli.py and tests/test_package_version.py (ruff drift).
  • Bumped version 0.8.1 → 0.8.2.

Test plan

  • uv run ruff check
  • uv run ruff format --check
  • uv run ty check
  • uv run pytest — 779 passed (was 738; +41 new)

Closes coverage gaps on two importer helper modules that were only
exercised indirectly through pipeline tests: ImageHandler (extraction,
naming, MIME mapping, mammoth callback) and LeafpressMarkdownConverter
(fenced code blocks, pipe tables, option overrides). Also loosens the
hard-coded page-count asserts in the cibutler integration test, which
were breaking whenever new pages were added to the external docs site.
Reformats two test files flagged by ruff.
@hutchins
hutchins merged commit 07e3ff0 into main Apr 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant