Body
As explained in #20428 (comment) we seem to have number (not big) of tests that use "has_calls" rather than "assert_has_calls".
😱 😱 😱 😱 😱 😱 😱 😱 😱
What "has_calls" does is acually calling "has_calls" method on the mock :) . Which make them no-assertion tests:
😱 😱 😱 😱 😱 😱 😱 😱 😱
The list of those tests:
We should fix those tests and likelly add pre-commit to ban this.
Thanks to @jobegrabber for noticing it!
Committer
Body
As explained in #20428 (comment) we seem to have number (not big) of tests that use "has_calls" rather than "assert_has_calls".
😱 😱 😱 😱 😱 😱 😱 😱 😱
What "has_calls" does is acually calling "has_calls" method on the mock :) . Which make them no-assertion tests:
😱 😱 😱 😱 😱 😱 😱 😱 😱
The list of those tests:
We should fix those tests and likelly add pre-commit to ban this.
Thanks to @jobegrabber for noticing it!
Committer