Skip to content

Rewrite core internals #28

@bdsoha

Description

@bdsoha

Rewrite core internals in a more object oriented fashion.

  • Move the responsibility for evaluating (comparing actual and expected) from BaseExpectation to 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:
       ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions