New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-113569: Display calls in Mock.assert_has_calls failure when empty #113573
gh-113569: Display calls in Mock.assert_has_calls failure when empty #113573
Conversation
News failed the lint, but now i'm thinking this probably doesn't even need news, should I just remove it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change needs a NEWS entry :)
Misc/NEWS.d/next/Library/2023-12-29-17-57-45.gh-issue-113569.qcRCEI.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about displaying " Actual: not called" like in assert_called_with()
?
Thank you everyone for the reviews so far by the way, it's appreciated :) |
@wookie184 - this looks ready to merge now, is that correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you for your contribution @wookie184. It is not only added a useful feature, but made the code tidier in general. |
Any backports needed @serhiy-storchaka ? |
This is a new feature, not a bug fix. |
Closes #113569