rpdelaney-archive / pwstore

a cli password manager in python
GNU General Public License v3.0
3 stars 1 forks source link

Bump pytest-mock from 1.10.4 to 3.1.0 #51

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps pytest-mock from 1.10.4 to 3.1.0.

Release notes

Sourced from pytest-mock's releases.

3.0.0 (2020-03-31)

  • Python 2.7 and 3.4 are no longer supported. Users using pip 9 or later will install a compatible version automatically.
  • mocker.spy now also works with async def functions (#179). Thanks @frankie567 for the PR!

2.0.0 (2020-01-04)

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.

1.13.0 (2019-12-05)

  • The object returned by mocker.spy now also tracks any side effect of the spied method/function.

1.12.1 (2019-11-20)

  • Fix error if mocker.patch is used in code where the source file is not available, for example stale .pyc files (#169).

1.12.0 (2019-11-19)

Now all patch functions also raise a ValueError when used as a context-manager. Thanks @AlexGascon for the PR (#168).

1.11.2 (2019-10-19)

  • The pytest introspection follows message is no longer shown if there is no pytest introspection (#154). Thanks @The-Compiler for the report.

  • mocker now raises a ValueError when used as a context-manager. Thanks @binarymason for the PR (#165).

1.11.1 (2019-10-04)

  • Fix mocker.spy on Python 2 when used on non-function objects which implement __call__ #157. Thanks @pbasista for the report.

v1.11.0

  • mocker.spy now also tracks the return value.
Changelog

Sourced from pytest-mock's changelog.

3.1.0 (2020-04-18)

  • New mocker fixtures added that allow using mocking functionality in other scopes:

    • class_mocker
    • module_mocker
    • package_mocker
    • session_mocker

    Added by @scorphus in #182.

3.0.0 (2020-03-31)

  • Python 2.7 and 3.4 are no longer supported. Users using pip 9 or later will install a compatible version automatically.
  • mocker.spy now also works with async def functions (#179). Thanks @frankie567 for the PR!

2.0.0 (2020-01-04)

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.

1.13.0 (2019-12-05)

  • The object returned by mocker.spy now also tracks any side effect of the spied method/function.

1.12.1 (2019-11-20)

  • Fix error if mocker.patch is used in code where the source file is not available, for example stale .pyc files (#169).

1.12.0 (2019-11-19)

  • Now all patch functions also raise a ValueError when used as a context-manager. Thanks @AlexGascon for the PR (#168).

1.11.2 (2019-10-19)

  • The pytest introspection follows message is no longer shown if there is no pytest introspection (#154). Thanks @The-Compiler for the report.
  • mocker now raises a ValueError when used as a context-manager. Thanks @binarymason for the PR (#165).
... (truncated)
Commits
  • f1759fd Add CHANGELOG and README about other-scoped mocker fixtures
  • e43552a Merge pull request #182 from scorphus/scoped-mockers
  • 762f907 Add mocker for class, module, package and session scopes
  • d0cceef Merge pull request #181 from nicoddemus/release-3.0.0
  • 7849964 Update CHANGELOG for 3.0.0
  • 97f897f Merge pull request #179 from frankie567/issue-178
  • f8f87fd Skip 'deploy' job unless on a tag
  • 3efdf9f Add CHANGELOG and docs for #178
  • 06d1848 Fix #178: handle spy on async functions
  • 2abec3b Drop support for EOL Python 2.7 and 3.4 (#176)
  • Additional commits viewable in compare view


Dependabot compatibility score

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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 4 years ago

Superseded by #61.