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.6.0 #23

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Jun 1, 2017

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

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

Changelog

1.6.0


  • The original assertions raised by the various Mock.assert_* methods
    now appear in the failure message, in addition to the message obtained from
    pytest introspection.
    Thanks quodlibetor_ for the initial patch (79_).

.. _quodlibetor: https://github.com/quodlibetor

.. _79: pytest-dev/pytest-mock#79

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

1.3.0


  • Add support for Python 3.6. Thanks hackebrot_ for the report (59_).
  • mock.mock_open is now aliased as mocker.mock_open for convenience.
    Thanks pokidovea_ for the PR (66_).

.. _hackebrot: https://github.com/hackebrot
.. _pokidovea: https://github.com/pokidovea
.. _59: pytest-dev/pytest-mock#59
.. _66: pytest-dev/pytest-mock#66

1.2


  • Try to import mock first instead of unittest.mock. This gives the user flexibility
    to install a newer mock version from PyPI instead of using the one available in the
    Python distribution.
    Thanks wcooley_ for the PR (54_).
  • mock.sentinel is now aliased as mocker.sentinel for convenience.
    Thanks kjwilcox_ for the PR (56_).

.. _wcooley: https://github.com/wcooley
.. _kjwilcox: https://github.com/kjwilcox
.. _54: pytest-dev/pytest-mock#54
.. _56: pytest-dev/pytest-mock#56

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

Happy merging! 🤖

@aryamccarthy aryamccarthy merged commit beea0f6 into master Jun 1, 2017
@aryamccarthy aryamccarthy deleted the pyup-update-pytest-mock-1.1-to-1.6.0 branch June 1, 2017 22:05
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.

2 participants