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

Update pytest-mock to 1.4.0 #49

Merged
merged 1 commit into from
Nov 3, 2016

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 99.41% (diff: 100%)

Merging #49 into master will not change coverage

@@             master        #49   diff @@
==========================================
  Files             9          9          
  Lines           344        344          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits            342        342          
  Misses            2          2          
  Partials          0          0          

Powered by Codecov. Last update 9db4385...169bddb

@argaen argaen merged commit ede33e2 into master Nov 3, 2016
@argaen argaen deleted the pyup-update-pytest-mock-1.3.0-to-1.4.0 branch November 3, 2016 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants