8ae8bd8a5d
- update to 3.15.1: * #529: Fixed itertools._tee object has no attribute error -- now duplicate_iterators=True must be passed to mocker.spy to duplicate iterators.
Dirk Mueller2025-09-29 20:31:24 +00:00
8e31a191bf
Accepting request 1303678 from devel:languages:python:pytest
Ana Guerrero2025-09-11 12:38:17 +00:00
c84a87535b
- update to 3.15.0: * Python 3.8 (EOL) is no longer supported. * #524: Added spy_return_iter to mocker.spy, which contains a duplicate of the return value of the spied method if it is an Iterator. * #503: Python 3.14 is now officially supported. - Drop python-py requirement, no longer required.
Dirk Mueller2025-09-10 17:13:50 +00:00
cb52a54a47
- Drop python-py requirement, no longer required.
Steve Kowalik2024-09-02 01:46:41 +00:00
5aff691208
- Drop python-py requirement, no longer required.
Steve Kowalik2024-09-02 01:46:41 +00:00
a4f0161c06
Accepting request 1186141 from devel:languages:python:pytest
Ana Guerrero2024-07-10 14:47:48 +00:00
b6cce7f3b9
Accepting request 1186141 from devel:languages:python:pytest
Ana Guerrero2024-07-10 14:47:48 +00:00
3a7e75f26a
- update to 3.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. * #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. - drop fix-tests-python3117.patch (upstream)
Dirk Mueller2024-07-08 10:49:16 +00:00
34d13e8ee5
- update to 3.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. * #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. - drop fix-tests-python3117.patch (upstream)
Dirk Mueller2024-07-08 10:49:16 +00:00
10d375e8bd
Accepting request 1134209 from devel:languages:python:pytest
Ana Guerrero2023-12-21 22:37:21 +00:00
b1ce010d42
Accepting request 1134208 from home:dgarcia:branches:devel:languages:python:Factory
Daniel Garcia2023-12-20 12:44:07 +00:00
803048204c
Accepting request 1124082 from devel:languages:python:pytest
Ana Guerrero2023-11-08 21:17:09 +00:00
312a9e3b24
- update to 3.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`_). - add upstream patch to test with pytest5 - fix_tests.patch
Dirk Mueller2023-11-07 19:36:34 +00:00
64799600d0
Accepting request 1100451 from devel:languages:python:pytest
Ana Guerrero2023-07-26 11:21:42 +00:00
90850a03a3
- update to 3.11.1: * Fixed introspection for failed `assert_has_calls * Updated type annotations for mocker.patch and mocker.spy (#364`_).
Dirk Mueller2023-07-24 19:10:39 +00:00
6cae8c38a8
- Remove python_module macro definition - Remove pytest-mock-issue272-asyncio.patch - Add python-py dependency - Update to 3.10.0: * Added new mocker.stop(m) method to stop specific mocker.patch or mocker.spy calls (#319). - 3.9.0: * Expose NonCallableMagicMock via the mocker fixture (#318). - 3.8.2: * Fixed AsyncMock support for Python 3.7+ in mocker.async_stub (#302). - 3.8.1: * Fix regression caused by an explicit mock dependency in the code (#298). - 3.8.0: * Add MockerFixture.async_mock method. Thanks @PerchunPak for the PR (#296). - 3.7.0: * Python 3.10 now officially supported. * Dropped support for Python 3.6.
Daniel Garcia2022-11-30 11:28:26 +00:00
85cee62be4
- Update to 3.1.1: * Fixed performance regression caused by the ValueError raised when mocker is used as context manager (#191).
Tomáš Chvátal
2020-06-09 07:59:33 +00:00
8715cb0d4a
- Update to 3.1.0: * Python 2.7 and 3.4 are no longer supported * New mocker fixtures added that allow using mocking functionality in other scopes
Tomáš Chvátal
2020-04-27 10:21:09 +00:00
c1fdc5c40a
- Update to 2.0.0: * mocker.spy attributes for tracking returned values and raised exceptions of its spied functions are now called spy_return and spy_exception, instead of reusing the existing MagicMock attributes return_value and side_effect. * The deprecated mock alias to the mocker fixture has finally been removed.
Tomáš Chvátal
2020-01-06 13:13:41 +00:00
3bf39040c1
- Update to 1.12.1: * Fix error if mocker.patch is used in code where the source file is not available, for example stale .pyc files * Now all patch functions also raise a ValueError when used as a context-manager
Tomáš Chvátal
2019-12-04 12:07:12 +00:00
fc04c77c35
Accepting request 749233 from home:frispete:python
Tomáš Chvátal
2019-11-18 09:58:52 +00:00
abc8e44210
- Update to 1.11.2: * The pytest introspection follows message is no longer shown if there is no pytest introspection (#154) * mocker now raises a ValueError when used as a context-manager
Tomáš Chvátal
2019-11-05 10:53:59 +00:00
24f04b847b
- Update to 1.11.0: * The object returned by mocker.spy now also tracks the return value of the spied method/function. - Drop merged patch mock3.patch and fix_tests.patch
Tomáš Chvátal
2019-09-30 12:24:55 +00:00
30379a6a38
- Update to 1.10.3: * Fix test suite in Python 3.8. Thanks @hroncok for the report and @blueyed for the PR (#140).
Tomáš Chvátal
2019-04-01 08:36:12 +00:00