build(deps): update dependency pytest-mock to v3.6.1 #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.3.1
->==3.6.1
Release Notes
pytest-dev/pytest-mock
v3.6.1
Compare Source
mocker.resetall()
when usingmocker.spy()
(#237
). Thanks@blaxter
for the report and@shadycuz
_ for the PR... _@blaxter: https://github.com/blaxter
.. _@shadycuz: https://github.com/shadyc[https://github.com/pytest-dev/pytest-mock/issues/237](https://togithub.com/pytest-dev/pytest-mock/issues/237)ytest-mock/issues/237
v3.6.0
Compare Source
pytest-mock no longer supports Python 3.5.
Correct type annotations for
mocker.patch.object
to also include the string form.Thanks
@plannigan
_ for the PR (#235
_).reset_all
now supportsreturn_value
andside_effect
keyword arguments. Thanks@alex-marty
_ for the PR (#214
_)... _@alex-marty: https://github.com/alex-marty
.. _@plannigan: https://github.com/plannig[https://github.com/pytest-dev/pytest-mock/pull/214](https://togithub.com/pytest-dev/pytest-mock/pull/214)/pytest-mock[https://github.com/pytest-dev/pytest-mock/pull/235](https://togithub.com/pytest-dev/pytest-mock/pull/235)est-dev/pytest-mock/pull/235
v3.5.1
Compare Source
inspect.getattr_static
instead of resorting toobject.__getattribute__
magic. This should better comply with objects which implement a custom descriptor
protocol. Thanks
@yesthesoup
_ for the PR (#224
_)... _@yesthesoup: https://github.com/yesthesoup
.. [https://github.com/pytest-dev/pytest-mock/pull/224](https://togithub.com/pytest-dev/pytest-mock/pull/224)-mock/pull/224
v3.5.0
Compare Source
Now all patch functions will emit a warning instead of raising a
ValueError
when usedas a context-manager. Thanks
@iforapsy
_ for the PR (#221
_).Additionally,
mocker.patch.context_manager
is available when the user intends to mocka context manager (for example
threading.Lock
object), which will not emit thatwarning.
.. _@iforapsy: https://github.com/iforapsy
.. [https://github.com/pytest-dev/pytest-mock/pull/221](https://togithub.com/pytest-dev/pytest-mock/pull/221)-mock/pull/221
v3.4.0
Compare Source
Add
mock.seal
alias to themocker
fixture (#211
). Thanks@coiax
for the PR.Fixed spying on exceptions not covered by the
Exception
superclass (
#215
), likeKeyboardInterrupt
-- PR#216
by
@webknjaz
_.Before the fix, both
spy_return
andspy_exception
were always assigned to
None
whenever such an exception happened. And after this fix,
spy_exception
is set to a correct value of an exceptionthat has actually happened.
.. _@coiax: https://github.com/coiax
.. _@webknjaz: https://github.com/sponsors/webknj[https://github.com/pytest-dev/pytest-mock/pull/211](https://togithub.com/pytest-dev/pytest-mock/pull/211)/pytest-mock[https://github.com/pytest-dev/pytest-mock/issues/215](https://togithub.com/pytest-dev/pytest-mock/issues/215)t-dev/pytest[https://github.com/pytest-dev/pytest-mock/pull/216](https://togithub.com/pytest-dev/pytest-mock/pull/216)com/pytest-dev/pytest-mock/pull/216
Configuration
📅 Schedule: "after 7pm every weekday,every weekend" in timezone Africa/Lusaka.
🚦 Automerge: Enabled.
♻ 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 has been generated by WhiteSource Renovate. View repository job log here.