Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Update pytest-mock to 1.5.0 #126

Merged
merged 1 commit into from
Jan 17, 2017
Merged

Conversation

pyup-bot
Copy link
Contributor

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

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

Changelog

1.5.0


  • New mocker.mock_module variable points to the underlying mock module being used
    (unittest.mock or mock).
    Thanks blueyed_ for the request (71_).

.. _71: pytest-dev/pytest-mock#71

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
    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! 馃

@mozilla-autolander-deprecated

Autolander could not find a bug number in your pull request title. All pull requests should be in the format of: Bug [number] - [description].

@codecov-io
Copy link

Current coverage is 78.27% (diff: 100%)

Merging #126 into master will not change coverage

@@             master       #126   diff @@
==========================================
  Files            40         40          
  Lines          1169       1169          
  Methods           0          0          
  Messages          0          0          
  Branches        122        122          
==========================================
  Hits            915        915          
  Misses          230        230          
  Partials         24         24          

Powered by Codecov. Last update 9de0800...e00fa21

@jezdez jezdez merged commit 9836e77 into master Jan 17, 2017
@jezdez jezdez deleted the pyup-update-pytest-mock-1.3.0-to-1.5.0 branch January 17, 2017 11:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants