Skip to content

Tests: specification-style rewrite - #10

Merged
pattonw merged 2 commits into
mainfrom
tests/quality
Nov 17, 2026
Merged

pattonw merged 2 commits into
mainfrom
tests/quality

Conversation

@pattonw

@pattonw pattonw commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Rewrites the tests as a specification of the public API: one behaviour per test, exact positive assertions, partitions through parametrize. Test files only.

  • Numbered and vague tests are named for the behaviour they assert; mirrored argument orders are asserted in the test body.
  • Read-only ROIs are module constants; the two Coordinate error tests are one parametrized test.
  • The open questions from test_questions.py (Roi.grow shrinking past zero size, empty-ROI containment) are left untested rather than pinned.
main this branch
test lines 324 287
tests collected 16 59
coverage (floor 81) 81.54% 81.28%

Run time is unchanged (about 0.1 s of pytest time).

🤖 Generated with Claude Code

…artition

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… merge error cases

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@pattonw
pattonw merged commit d87cbf4 into main Nov 17, 2026
6 checks passed
@pattonw
pattonw deleted the tests/quality branch November 17, 2026 17:43
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.

2 participants