pytest-dev/pytest-mock (pytest-mock)
### [`v2.0.0`](https://redirect.github.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#200-2020-01-04)
[Compare Source](https://redirect.github.com/pytest-dev/pytest-mock/compare/v1.13.0...v2.0.0)
Breaking Changes
\++++++++++++++++
- `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`.
Version `1.13` introduced a serious regression: after a spied function using `mocker.spy`
raises an exception, further calls to the spy will not call the spied function,
always raising the first exception instead: assigning to `side_effect` causes
`unittest.mock` to behave this way (`#175`\_).
- The deprecated `mock` alias to the `mocker` fixture has finally been removed.
.. \_#175:[https://github.com/pytest-dev/pytest-mock/issues/175](https://redirect.github.com/pytest-dev/pytest-mock/issues/175)5
Configuration
📅 Schedule: Branch creation - "after 10:30 before 18:00 every weekday except after 13:00 before 14:00" in timezone America/Lima, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
==1.13.0
->==2.0.0
:warning: MAJOR MAJOR MAJOR :warning:
Release Notes
pytest-dev/pytest-mock (pytest-mock)
### [`v2.0.0`](https://redirect.github.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#200-2020-01-04) [Compare Source](https://redirect.github.com/pytest-dev/pytest-mock/compare/v1.13.0...v2.0.0) Breaking Changes \++++++++++++++++ - `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`. Version `1.13` introduced a serious regression: after a spied function using `mocker.spy` raises an exception, further calls to the spy will not call the spied function, always raising the first exception instead: assigning to `side_effect` causes `unittest.mock` to behave this way (`#175`\_). - The deprecated `mock` alias to the `mocker` fixture has finally been removed. .. \_#175:[https://github.com/pytest-dev/pytest-mock/issues/175](https://redirect.github.com/pytest-dev/pytest-mock/issues/175)5Configuration
📅 Schedule: Branch creation - "after 10:30 before 18:00 every weekday except after 13:00 before 14:00" in timezone America/Lima, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.