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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest-mock to 1.4.0 #1360

Merged
merged 1 commit into from
Nov 3, 2016
Merged

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Nov 3, 2016

There's a new version of pytest-mock available.
You are currently using 1.3.0. I have updated it to 1.4.0

These links might come in handy: PyPI | Changelog | Repo

Changelog

1.4.0


  • New configuration variable, mock_use_standalone_module (defaults to False). This forces
    the plugin to import mock instead of unittest.mock on Python 3. This is useful to import
    and use a newer version than the one available in the Python distribution.
  • Previously the plugin would first try to import mock and fallback to unittest.mock
    in case of an ImportError, but this behavior has been removed because it could hide
    hard to debug import errors (68_).
  • Now mock (Python 2) and unittest.mock (Python 3) are lazy-loaded to make it possible to
    implement the new mock_use_standlone_module configuration option. As a consequence of this
    the undocumented pytest_mock.mock_module variable, which pointed to the actual mock module
    being used by the plugin, has been removed.
  • DEFAULT <https://docs.python.org/3/library/unittest.mock.htmldefault>_ is now available from
    the mocker fixture.

.. _68: pytest-dev/pytest-mock#68

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 馃

@codecov-io
Copy link

codecov-io commented Nov 3, 2016

Current coverage is 98.78% (diff: 100%)

Merging #1360 into master will increase coverage by 0.04%

@@             master      #1360   diff @@
==========================================
  Files            29         29          
  Lines          6750       6750          
  Methods           0          0          
  Messages          0          0          
  Branches       1118       1118          
==========================================
+ Hits           6665       6668     +3   
+ Misses           41         38     -3   
  Partials         44         44          

Powered by Codecov. Last update 1c1c6bd...4b5d480

@asvetlov asvetlov merged commit 7e2b762 into master Nov 3, 2016
@asvetlov asvetlov deleted the pyup-update-pytest-mock-1.3.0-to-1.4.0 branch November 3, 2016 18:49
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants