|
| 1 | +5.2.0 |
| 2 | +----- |
| 3 | + |
| 4 | +- gh-65454: :func:`unittest.mock.Mock.attach_mock` no longer triggers a call |
| 5 | + to a ``PropertyMock`` being attached. |
| 6 | + |
| 7 | +- gh-117765: Improved documentation for :func:`unittest.mock.patch.dict` |
| 8 | + |
| 9 | +- gh-124176: Add support for :func:`dataclasses.dataclass` in |
| 10 | + :func:`unittest.mock.create_autospec`. Now ``create_autospec`` will check |
| 11 | + for potential dataclasses and use :func:`dataclasses.fields` function to |
| 12 | + retrieve the spec information. |
| 13 | + |
| 14 | +- gh-123934: Fix :class:`unittest.mock.MagicMock` reseting magic methods |
| 15 | + return values after ``.reset_mock(return_value=True)`` was called. |
| 16 | + |
| 17 | +- gh-90848: Fixed :func:`unittest.mock.create_autospec` to configure parent |
| 18 | + mock with keyword arguments. |
| 19 | + |
| 20 | +- gh-113569: Indicate if there were no actual calls in unittest |
| 21 | + :meth:`~unittest.mock.Mock.assert_has_calls` failure. |
| 22 | + |
| 23 | +- gh-122858: Deprecate :func:`!asyncio.iscoroutinefunction` in favor of |
| 24 | + :func:`inspect.iscoroutinefunction`. |
| 25 | + |
| 26 | +- gh-104745: Limit starting a patcher (from :func:`unittest.mock.patch` or |
| 27 | + :func:`unittest.mock.patch.object`) more than once without stopping it |
| 28 | + |
| 29 | +- gh-75988: Fixed :func:`unittest.mock.create_autospec` to pass the call |
| 30 | + through to the wrapped object to return the real result. |
| 31 | + |
| 32 | +- gh-119600: Fix :func:`unittest.mock.patch` to not read attributes of the |
| 33 | + target when ``new_callable`` is set. Patch by Robert Collins. |
| 34 | + |
| 35 | +- gh-113407: Fix import of :mod:`unittest.mock` when CPython is built |
| 36 | + without docstrings. |
| 37 | + |
| 38 | +- gh-120732: Fix ``name`` passing to :class:`unittest.mock.Mock` object when |
| 39 | + using :func:`unittest.mock.create_autospec`. |
| 40 | + |
1 | 41 | 5.1.0
|
2 | 42 | -----
|
3 | 43 |
|
|
0 commit comments