You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> mock.assert_called_once_with('test')
E AssertionError: Expected 'mock' to be called once. Called 2 times.
E
E pytest introspection follows:
test_x.py:5: AssertionError
which is kind of confusing.
The text was updated successfully, but these errors were encountered:
Yep! Ideally, there would be a pytest introspection of all calls there (something like "expected: [mock.call('test')], got [mock.call('foo'), mock.call('test')]" or so) - but at least, there shouldn't be a "pytest introspection follows:" if nothing actually follows.
nicoddemus
added a commit
to nicoddemus/pytest-mock
that referenced
this issue
Oct 5, 2019
When a mock is called multiple times (with the right arguments, at some point) but only one call is expected:
the output is:
which is kind of confusing.
The text was updated successfully, but these errors were encountered: