Home | History | Annotate | Download | only in mock
      1 Library
      2 -------
      3 
      4 - Issue #26323: Add Mock.assert_called() and Mock.assert_called_once()
      5   methods to unittest.mock. Patch written by Amit Saha.
      6 
      7 - Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
      8   original values after patching. Patch contributed by Sean McCully.
      9 
     10 - Issue #24857: Comparing call_args to a long sequence now correctly returns a
     11   boolean result instead of raising an exception.  Patch by A Kaptur.
     12 
     13 - Issue #23004: mock_open() now reads binary data correctly when the type of
     14   read_data is bytes.  Initial patch by Aaron Hill.
     15 
     16 - Issue #21750: mock_open.read_data can now be read from each instance, as it
     17   could in Python 3.3.
     18 
     19 - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
     20   Patch from Nicola Palumbo and Laurent De Buyst.
     21 
     22 - Issue #23661: unittest.mock side_effects can now be exceptions again. This
     23   was a regression vs Python 3.4. Patch from Ignacio Rossi
     24 
     25 - Issue #23310: Fix MagicMock's initializer to work with __methods__, just
     26   like configure_mock().  Patch by Kasia Jachim.
     27 
     28 - Issue #23568: Add rdivmod support to MagicMock() objects.
     29   Patch by Hkan Lvdahl.
     30 
     31 - Issue #23581: Add matmul support to MagicMock. Patch by Hkan Lvdahl.
     32 
     33 - Issue #23326: Removed __ne__ implementations.  Since fixing default __ne__
     34   implementation in issue #21408 they are redundant. *** NOT BACKPORTED ***
     35 
     36 - Issue #21270: We now override tuple methods in mock.call objects so that
     37   they can be used as normal call attributes.
     38 
     39 - Issue #21256: Printout of keyword args should be in deterministic order in
     40   a mock function call. This will help to write better doctests.
     41 
     42 - Issue #21262: New method assert_not_called for Mock.
     43   It raises AssertionError if the mock has been called.
     44 
     45 - Issue #21238: New keyword argument `unsafe` to Mock. It raises
     46   `AttributeError` incase of an attribute startswith assert or assret.
     47 
     48 - Issue #21239: patch.stopall() didn't work deterministically when the same
     49   name was patched more than once.
     50 
     51 - Issue #21222: Passing name keyword argument to mock.create_autospec now
     52   works.
     53 
     54 - Issue #17826: setting an iterable side_effect on a mock function created by
     55   create_autospec now works. Patch by Kushal Das.
     56 
     57 - Issue #17826: setting an iterable side_effect on a mock function created by
     58   create_autospec now works. Patch by Kushal Das.
     59 
     60 - Issue #20968: unittest.mock.MagicMock now supports division.
     61   Patch by Johannes Baiter.
     62 
     63 - Issue #20189: unittest.mock now no longer assumes that any object for
     64   which it could get an inspect.Signature is a callable written in Python.
     65   Fix courtesy of Michael Foord.
     66 
     67 - Issue #17467: add readline and readlines support to mock_open in
     68   unittest.mock.
     69 
     70 - Issue #17015: When it has a spec, a Mock object now inspects its signature
     71   when matching calls, so that arguments can be matched positionally or
     72   by name.
     73 
     74 - Issue #15323: improve failure message of Mock.assert_called_once_with
     75 
     76 - Issue #14857: fix regression in references to PEP 3135 implicit __class__
     77   closure variable (Reopens issue #12370)
     78 
     79 - Issue #14295: Add unittest.mock
     80