Replace mock_obj.assert_has_calls(calls)
with assert mock_obj.mock_calls == calls
#12480
Labels
good first issue
Good for newcomers
Summary
assert_has_calls
is not exact match and can lead to false positives:In most cases,
assert mock_obj.mock_calls == calls
should work.Notes
Make sure to open a PR from a non-master branch.
Sign off the commit using the
-s
flag when making a commit:Include
#{issue_number}
(e.g.#123
) in the PR description when opening a PR.The text was updated successfully, but these errors were encountered: