Bump pytest-mock from 3.3.1 to 3.10.0
Bumps pytest-mock from 3.3.1 to 3.10.0.
Release notes
Sourced from pytest-mock's releases.
v3.10.0
- Added new
mocker.stop(m)method to stop specificmocker.patchormocker.spycalls (#319).v3.9.0
- Expose
NonCallableMagicMockvia themockerfixture (#318).v3.8.2
- Fixed
AsyncMocksupport for Python 3.7+ inmocker.async_stub(#302).v3.8.1
- Fix regression caused by an explicit
mockdependency in the code (#298).v3.8.0
- Add
MockerFixture.async_mockmethod. Thanks@PerchunPakfor the PR (#296).3.7.0
- Python 3.10 now officially supported.
- Dropped support for Python 3.6.
3.6.1 (2021-05-06)
- Fix
mocker.resetall()when usingmocker.spy()(#237). Thanks@blaxterfor the report and@shadycuzfor the PR.3.6.0 (2021-04-24)
- pytest-mock no longer supports Python 3.5.
- Correct type annotations for
mocker.patch.objectto also include the string form. Thanks@planniganfor the PR (#235).reset_allnow supportsreturn_valueandside_effectkeyword arguments. Thanks@alex-martyfor the PR (#214).3.5.1 (2021-01-10)
- Use
inspect.getattr_staticinstead of resorting toobject.__getattribute__magic. This should better comply with objects which implement a custom descriptor protocol. Thanks@yesthesoupfor the PR (#224).3.5.0 (2021-01-04)
- Now all patch functions will emit a warning instead of raising a
ValueErrorwhen used as a context-manager. Thanks@iforapsyfor the PR (#221).- Additionally,
mocker.patch.context_manageris available when the user intends to mock a context manager (for examplethreading.Lockobject), which will not emit that warning.3.4.0 (2020-12-15)
Add [mock.seal]{.title-ref} alias to the [mocker]{.title-ref} fixture (#211). Thanks
@coiaxfor the PR.Fixed spying on exceptions not covered by the
Exceptionsuperclass (#215), likeKeyboardInterrupt-- PR #216 by@webknjaz.
... (truncated)
Changelog
Sourced from pytest-mock's changelog.
3.10.0 (2022-10-05)
- Added new
mocker.stop(m)method to stop specificmocker.patchormocker.spycalls ([#319](https://github.com/pytest-dev/pytest-mock/issues/319)_)... _#319: pytest-dev/pytest-mock#319
3.9.0 (2022-09-28)
- Expose
NonCallableMagicMockvia themockerfixture ([#318](https://github.com/pytest-dev/pytest-mock/issues/318)_)... _#318: pytest-dev/pytest-mock#318
3.8.2 (2022-07-05)
- Fixed
AsyncMocksupport for Python 3.7+ inmocker.async_stub([#302](https://github.com/pytest-dev/pytest-mock/issues/302)_)... _#302: pytest-dev/pytest-mock#302
3.8.1 (2022-06-24)
- Fixed regression caused by an explicit
mockdependency in the code ([#298](https://github.com/pytest-dev/pytest-mock/issues/298)_)... _#298: pytest-dev/pytest-mock#298
3.8.0 (2022-06-24)
- Add
MockerFixture.async_mockmethod. Thanks@PerchunPak_ for the PR ([#296](https://github.com/pytest-dev/pytest-mock/issues/296)_)... _
@PerchunPak: https://github.com/PerchunPak .. _#296: pytest-dev/pytest-mock#2963.7.0 (2022-01-28)
- Python 3.10 now officially supported.
- Dropped support for Python 3.6.
3.6.1 (2021-05-06)
- Fix
mocker.resetall()when usingmocker.spy()([#237](https://github.com/pytest-dev/pytest-mock/issues/237)). Thanks@blaxterfor the report and@shadycuz_ for the PR... _
@blaxter: https://github.com/blaxter .. _@shadycuz: https://github.com/shadycuz .. _#237: pytest-dev/pytest-mock#237
... (truncated)
Commits
6c03dfdRelease 3.10.0fbb5039Implement selective un-spying and un-patching (#319)a1c7421[pre-commit.ci] pre-commit autoupdate (#321)4f2703cAdd Python 3.11 support (#320)1e2001fMerge pull request #318 from willfrey/patch-264a34f6Update CHANGELOG for 3.9.04e31630Add test for NonCallableMagicMock798f07e[pre-commit.ci] pre-commit autoupdate (#317)247b9d4Expose NonCallableMagicMock in MockerFixture0fd7feaUpdate link to notes about usage as context manager (#313)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
The following labels could not be found: type: maintenance.