Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pytest-mock from 1.11.2 to 3.1.0 #331

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps pytest-mock from 1.11.2 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).

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).
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:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants