Sourced from pytest-mock's releases.
v3.14.0
- #415:
MockType
andAsyncMockType
can be imported frompytest_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 hasspy_return_list
, which is a list containing all the values returned by the spied function.pytest-mock
now requirespytest>=6.2.5
.- #410: pytest-mock's
setup.py
file is removed. If you relied on this file, e.g. to install pytest usingsetup.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 bymocker.create_autospec
(#390).
Sourced from pytest-mock's changelog.
3.14.0 (2024-03-21)
[#415](https://github.com/pytest-dev/pytest-mock/issues/415) <https://github.com/pytest-dev/pytest-mock/pull/415>
_:MockType
andAsyncMockType
can be imported frompytest_mock
for type annotation purposes.
[#420](https://github.com/pytest-dev/pytest-mock/issues/420) <https://github.com/pytest-dev/pytest-mock/issues/420>
_: Fixed a regression which would causemocker.patch.object
to not being properly cleared between tests.3.13.0 (2024-03-21)
[#417](https://github.com/pytest-dev/pytest-mock/issues/417) <https://github.com/pytest-dev/pytest-mock/pull/417>
_:spy
now hasspy_return_list
, which is a list containing all the values returned by the spied function.pytest-mock
now requirespytest>=6.2.5
.[#410](https://github.com/pytest-dev/pytest-mock/issues/410) <https://github.com/pytest-dev/pytest-mock/pull/410>
: pytest-mock'ssetup.py
file is removed. If you relied on this file, e.g. to install pytest usingsetup.py install
, please seeWhy you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>
for alternatives.3.12.0 (2023-10-19)
- Added support for Python 3.12.
- Dropped support for EOL Python 3.7.
mocker.resetall()
now also resets mocks created bymocker.create_autospec
([#390](https://github.com/pytest-dev/pytest-mock/issues/390)
_).
8733134
Update CHANGELOG for 3.14.05257e3c
Refactor MockCache to have a narrow interface4faf92a
Fix regression with mocker.patch not being undone correctly6bd8712
Drop pre-Python 3.8 support code366966b
Export MockType
/AsyncMockType
for type
annotations (#415)852116b
Merge pull request #418
from pytest-dev/release-3.13.0ef9461b
Add instructions on how to start deploy from command-line5b9d285
Release 3.13.06d5d6dc
Implement spy_return_list
(#417)dc28a0e
[pre-commit.ci] pre-commit autoupdate (#416)