blob: 22a76fa3ece8cd50abcb4ea83a094ce8d4b61079 [file] [log] [blame]
Kushal Dasb4c7f7e2014-09-16 18:33:37 +05301- Issue #21270: We now override tuple methods in mock.call objects so that
2 they can be used as normal call attributes.
3
Kushal Dase9f77562014-06-09 13:45:56 +05304- Issue #21256: Printout of keyword args should be in deterministic order in
5 a mock function call. This will help to write better doctests.
6
Kushal Dasc7d6c7d2014-04-17 01:36:14 +05307- Issue #21262: New method assert_not_called for Mock.
8 It raises AssertionError if the mock has been called.
9
Kushal Das7c530f02014-04-16 23:32:21 +053010- Issue #21238: New keyword argument `unsafe` to Mock. It raises
11 `AttributeError` incase of an attribute startswith assert or assret.
12
Michael Foordba2e4072014-04-15 17:21:08 -040013- Issue #21239: patch.stopall() didn't work deterministically when the same
14 name was patched more than once.
15
Kushal Dasd3135cf2014-04-16 01:05:50 +053016- Issue #21222: Passing name keyword argument to mock.create_autospec now
17 works.
18
Michael Foord6df8ab62014-04-14 16:09:42 -040019- Issue #17826: setting an iterable side_effect on a mock function created by
20 create_autospec now works. Patch by Kushal Das.
21
Michael Foord936fabd2014-04-14 16:25:20 -040022- Issue #17826: setting an iterable side_effect on a mock function created by
23 create_autospec now works. Patch by Kushal Das.
24
Michael Foorddfeef202014-04-14 11:23:48 -040025- Issue #20968: unittest.mock.MagicMock now supports division.
26 Patch by Johannes Baiter.
27
Larry Hastingsb9d1edb2014-01-24 06:17:25 -080028- Issue #20189: unittest.mock now no longer assumes that any object for
29 which it could get an inspect.Signature is a callable written in Python.
30 Fix courtesy of Michael Foord.
31
Michael Foorda98a5ba2013-03-19 17:22:51 -070032- Issue #17467: add readline and readlines support to mock_open in
33 unittest.mock.
34
Antoine Pitroueba505c2013-02-03 00:23:58 +010035- Issue #17015: When it has a spec, a Mock object now inspects its signature
36 when matching calls, so that arguments can be matched positionally or
37 by name.
38
Michael Foord7ea94082012-09-28 16:15:22 +010039- Issue #15323: improve failure message of Mock.assert_called_once_with
40
Nick Coghlandfb22112012-05-27 18:17:07 +100041- Issue #14857: fix regression in references to PEP 3135 implicit __class__
42 closure variable (Reopens issue #12370)
43
Michael Foordac60cfa2012-03-25 18:16:07 +010044- Issue #14295: Add unittest.mock