Improve changelog message

This commit is contained in:
Bruno Oliveira 2018-10-30 16:15:03 -03:00 committed by Tomer Keren
parent 3e6f1fa2db
commit 26d27df6fc
1 changed files with 11 additions and 1 deletions

View File

@ -1 +1,11 @@
Add warning when asserting ``None`` directly
A warning is now issued when assertions are made directly against ``None``.
This is a common source of confusion among new users, which write::
assert mocked_object.assert_called_with(3, 4, 5, key='value')
When they should write::
mocked_object.assert_called_with(3, 4, 5, key='value')
Because the ``assert_called_with`` method of mock objects already executes an assertion.