Skip to content

Add Hypothesis property tests, fix download.py tag parsing#12

Merged
ianhi merged 1 commit intomainfrom
feat/hypothesis-property-tests
Mar 11, 2026
Merged

Add Hypothesis property tests, fix download.py tag parsing#12
ianhi merged 1 commit intomainfrom
feat/hypothesis-property-tests

Conversation

@ianhi
Copy link
Copy Markdown
Collaborator

@ianhi ianhi commented Mar 11, 2026

Summary

  • Add tests/test_properties.py with 53 property-based tests (Hypothesis) covering 20+ functions across all modules: rename, download, patch, run, server config, server HTML, and server stream.
  • Fix parse_wheel_tags in download.py — same build-tag heuristic bug previously fixed in rename.py (now counts from end instead of fragile isdigit check).
  • Convert dev optional-dependency to a [dependency-groups] dev group that includes the server extras, so uv sync installs everything needed for the full test suite.
  • Update INTERNAL_DOCS/testing.md and known-issues.md.

Test plan

  • uv run pytest tests/test_properties.py -v — 53 passed
  • uv run pytest tests/ -x --tb=short — 295 passed
  • uv run ruff check — all checks passed

🤖 Generated with Claude Code

…v dep group

- Add tests/test_properties.py with 53 property-based tests covering
  normalize_name, filename roundtrip, import rewriting, wheel rename,
  PEP 723 parsing, CLI rename parsing, dependency patching, RECORD
  hashing, metadata updates, wheel tag parsing, rename merging,
  comment/TOML extraction, cache key generation, server config
  parsing/normalization/lookup, HTML generation safety, and filename
  rewrite roundtrips.
- Fix parse_wheel_tags in download.py: replace fragile isdigit heuristic
  with count-from-end approach (same fix previously applied in rename.py).
- Convert dev optional-dependency to [dependency-groups] dev group that
  includes server deps, so `uv sync` gets everything needed for testing.
- Update INTERNAL_DOCS/testing.md and known-issues.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ianhi ianhi merged commit 586e2a0 into main Mar 11, 2026
5 checks passed
@ianhi ianhi deleted the feat/hypothesis-property-tests branch March 11, 2026 15:18
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