Releases: Solganis/assertpy2
Releases · Solganis/assertpy2
v2.2.0
New assertion methods
- Numeric:
is_even(),is_odd(),is_divisible_by() - String:
is_alphanumeric(),is_whitespace(),contains_any_of(),contains_none_of() - Collection:
contains_exactly(),contains_in_order(),any_satisfy(),all_satisfy(),none_satisfy() - Date:
is_before_or_equal_to(),is_after_or_equal_to() - Exception:
does_not_raise() - Type:
is_callable(),is_not_callable()
New matchers
match.is_even(), match.is_odd(), match.is_divisible_by(), match.is_callable(), match.is_in(), match.has_property()
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
What's new
- Structured errors:
AssertionFailurewith.actual,.expected,.diffattributes - Composable matchers:
match.greater_than(),match.is_uuid(), combine with&,|,~operators - Structural matching:
matches_structure()for declarative dict/API response validation - Async assertions:
eventually()with polling/retry for async and eventual consistency testing - Typed overloads:
assert_that()returns type-specific Protocols, IDE shows only relevant methods - Pytest plugin: rich diff output in failure reports, auto-registered via entry point
- Thread-safe soft assertions: migrated to
contextvarsfor thread/async isolation
v2.0.1
v2.0.0
Full Changelog: 1.1...v2.0.0