Releases: pytest-dev/pytest-mock
Releases · pytest-dev/pytest-mock
v3.14.1
- #503: Python 3.14 is now officially supported.
v3.14.0
- #415:
MockType
and AsyncMockType
can be imported from pytest_mock
for type annotation purposes.
- #420: Fixed a regression which would cause
mocker.patch.object
to not being properly cleared between tests.
v3.13.0
- #417:
spy
now has spy_return_list
, which is a list containing all the values returned by the spied function.
pytest-mock
now requires pytest>=6.2.5
.
- #410: pytest-mock's
setup.py
file is removed.
If you relied on this file, e.g. to install pytest using setup.py install
,
please see Why you shouldn't invoke setup.py directly for alternatives.
v3.12.0
- Added support for Python 3.12.
- Dropped support for EOL Python 3.7.
mocker.resetall()
now also resets mocks created by mocker.create_autospec
(#390).
v3.10.0
- Added new
mocker.stop(m)
method to stop specific mocker.patch
or mocker.spy
calls (#319).
v3.9.0
- Expose
NonCallableMagicMock
via the mocker
fixture (#318).
v3.8.2
- Fixed
AsyncMock
support for Python 3.7+ in mocker.async_stub
(#302).
v3.8.1
- Fix regression caused by an explicit
mock
dependency in the code (#298).