Closed shashankrnr32 closed 2 years ago
Fixes #41
Change impl of ArgumentCaptor to capture all the invocations in an attribute called all_values.
all_values
Not maintained with this change
value
None
MatcherError
ArgumentCaptor
I like it a lot. Just want to sleep over it for a night.
Fixes #41
Description
Change impl of ArgumentCaptor to capture all the invocations in an attribute called
all_values
.Backward Compatibility
Not maintained with this change
Whats backward incompatible
value
used to returnNone
when the argument was not captured. After this change, the code will throw aMatcherError
(RuntimeError)New Attributes
all_values
: List of all the invocations captured by theArgumentCaptor
. If there are no invocations, the list is empty.