-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
✨ enhancementNew feature or requestNew feature or request
Milestone
Description
Rewrite core internals in a more object oriented fashion.
- Move the responsibility for evaluating (comparing
actualandexpected) fromBaseExpectationto a new base class
class BaseMatcher:
def message(self, *, actual=None, **kwargs) -> str:
...
def _match(self, *, actual=None, **kwargs):
...
def _negate(self, *, actual=None, **kwargs):
...
def __call__(self, *, actual=None, **kwargs) -> bool:
...- Rewrite
equalas matcher #37 - Rewrite
beas matcher #38 - Rewrite
containas matcher #39 - Rewrite
be_contained_inas matcher #41 - Rewrite
be_emptyas matcher #40 - Rewrite
be_trueas matcher #42 - Rewrite
be_truthyas matcher #43 - Rewrite
be_falseas matcher #44 - Rewrite
be_falseyas matcher #45 - Rewrite
be_of_typeas matcher #46 - Rewrite
inheritas matcher #52 - Rewrite
greater_thanas matcher #51 - Rewrite
greater_than_or_equalas matcher #50 - Rewrite
lesser_than_or_equalas matcher #49 - Rewrite
lessert_thanas matcher #48 - Rewrite
be_numericas matcher #47 - Rewrite filesystem as matchers #53
- Rewrite functions as matchers #54
Metadata
Metadata
Assignees
Labels
✨ enhancementNew feature or requestNew feature or request