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.12.1 to 2.0.0 #114

Merged
merged 1 commit into from Mar 4, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jan 6, 2020

Bumps pytest-mock from 1.12.1 to 2.0.0.

Release notes

Sourced from pytest-mock's releases.

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.
Changelog

Sourced from pytest-mock's changelog.

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.
Commits
  • ccb76e5 Drop deprecated 'mock' alias to 'mocker'
  • fd02462 Change spy attributes to 'spy_return' and 'spy_exception'
  • 7bddcd5 Merge pull request #173 from inderpreet99/spy-exceptions
  • 895efb1 Add date to changelog for version 1.13.0
  • 567e053 Add docs for side effect feature on spies
  • 50f99e5 Record exceptions as side effects for spies
  • b3e0ad5 Black linting
  • 0df91f9 Add spy exception catching
  • 25de852 Store raised exceptions in return_value for spies
  • 2655441 Update coverage badge in README.rst (#172)
  • 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)
  • 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 Jan 6, 2020
@coveralls
Copy link

coveralls commented Jan 6, 2020

Pull Request Test Coverage Report for Build 927

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.995%

Totals Coverage Status
Change from base Build 925: 0.0%
Covered Lines: 192
Relevant Lines: 211

💛 - Coveralls

Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.12.1 to 2.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest-mock@v1.12.1...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/pip/develop/pytest-mock-2.0.0 branch from e78643d to b9bb0f3 Compare January 21, 2020 17:19
@zerasul zerasul merged commit 484758e into develop Mar 4, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/pip/develop/pytest-mock-2.0.0 branch March 4, 2020 20:07
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.

None yet

2 participants