Closed Chris-hughes10 closed 2 years ago
When using a numpy array as an argument to when() a value error is raised with the following message:
"ValueError: The truth value of an array with more than one element is ambiguous."
which is caused by the compare function in invocation.py.
It would be good to be able to pass array types to when(), which would be evaluated using .all() during comparison.
Hi!
There is a numpy testfile here https://github.com/kaste/mockito-python/blob/master/tests/numpy_test.py
Can you write a failing test for it to get it starting?
stranded
When using a numpy array as an argument to when() a value error is raised with the following message:
"ValueError: The truth value of an array with more than one element is ambiguous."
which is caused by the compare function in invocation.py.
It would be good to be able to pass array types to when(), which would be evaluated using .all() during comparison.