-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Example use case:
- I want to check if the exception is of some instance and check that they have correct attrs. We can just do duck typing, but sometimes, we want to have a stricter check.
The following is a snippet that I was playing with in my mind:
>>> M.instance_of(YAMLCorruptedError) & M(path="params.yaml")I also see that this API is going to complicate implementation, so we can brainstorm other ideas too to have composite matchers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels