Commit 33d5011
github-actions
Add comprehensive Hypothesis property-based and stateful tests
- Add tests/strategies.py with 20+ reusable address generation strategies
- Add tests/conftest.py with Hypothesis profile configuration
- Add tests/test_hypothesis_properties.py with 39 property tests covering:
- AddressFormatter idempotence and component extraction
- ZipCodeNormalizer validation and normalization
- AddressBuilder value preservation and fluent API
- Address and ParseResult model invariants
- AddressService parse consistency
- Add tests/test_hypothesis_stateful.py with 4 stateful tests:
- AddressBuilderStateMachine for fluent API testing
- AddressServiceStateMachine for parse/validate cycles
- AddressParseRoundtripStateMachine for roundtrip consistency
- ZipPlusFourBuilderStateMachine for ZIP+4 handling
Test suite expanded from 174 to 217 tests, coverage improved from 62% to 64%1 parent 4fea67f commit 33d5011
File tree
4 files changed
+1609
-0
lines changed- tests
4 files changed
+1609
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments