Browse Source
bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090)
bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090)
unittest.mock now includes mock calls in exception messages if assert_not_called, assert_called_once, or assert_called_once_with fails.pull/10079/head
committed by
Victor Stinner
4 changed files with 62 additions and 8 deletions
-
36Lib/unittest/mock.py
-
30Lib/unittest/test/testmock/testmock.py
-
1Misc/ACKS
-
3Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst
@ -0,0 +1,3 @@ |
|||
``unittest.mock`` now includes mock calls in exception messages if |
|||
``assert_not_called``, ``assert_called_once``, or ``assert_called_once_with`` |
|||
fails. Patch by Petter Strandmark. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue