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

[NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed #11

Closed

Conversation

mend-for-github-com[bot]
Copy link

@mend-for-github-com mend-for-github-com bot commented Feb 21, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pytest-mock (changelog) ==1.2 -> ==1.13.0 age adoption passing confidence

Release Notes

pytest-dev/pytest-mock (pytest-mock)

v1.13.0

Compare Source

  • The object returned by mocker.spy now also tracks any side effect
    of the spied method/function.

v1.12.1

Compare Source

  • Fix error if mocker.patch is used in code where the source file
    is not available, for example stale .pyc files (#169_).

.. _#169:https://github.com/pytest-dev/pytest-mock/issues/169#issuecomment-5557292655

v1.12.0

Compare Source

  • Now all patch functions also raise a ValueError when used
    as a context-manager. Thanks @AlexGascon_ for the PR (#168_).

.. _@​AlexGascon: https://github.com/AlexGascon
.. https://github.com/pytest-dev/pytest-mock/pull/168pull/168

v1.11.2

Compare Source

  • The pytest introspection follows message is no longer shown
    if there is no pytest introspection (#154).
    Thanks @The-Compiler
    for the report.

  • mocker now raises a ValueError when used as a context-manager.
    Thanks @binarymason_ for the PR (#165_).

.. _#154:https://github.com/pytest-dev/pytest-mock/issues/1544
.. _#165https://github.com/pytest-dev/pytest-mock/pull/16565
.. _@​binarymason: https://github.com/binarymason

v1.11.1

Compare Source

  • Fix mocker.spy on Python 2 when used on non-function objects
    which implement __call__ (#157). Thanks @pbasista for
    the report.

.. _#157:https://github.com/pytest-dev/pytest-mock/issues/1577
.. _@​pbasista: https://github.com/pbasista

v1.11.0

Compare Source

  • The object returned by mocker.spy now also tracks the return value
    of the spied method/function.

v1.10.4

Compare Source

  • Fix plugin when 'terminal' plugin is disabled

v1.10.3

Compare Source

  • Fix test suite in Python 3.8. Thanks @hroncok_ for the report and @blueyed_ for the PR (#140_).

.. _#140:https://github.com/pytest-dev/pytest-mock/pull/1400
.. _@​hroncok: https://github.com/hroncok

v1.10.2

Compare Source

  • Fix bug at the end of the test session when a call to patch.stopall is done explicitly by
    user code. Thanks @craiga_ for the report (#137_).

.. _#137:https://github.com/pytest-dev/pytest-mock/issues/1377
.. _@​craiga: https://github.com/craiga

v1.10.1

Compare Source

  • Fix broken links and update README. Also the code is now formatted using black <https://github.com/ambv/black>__.

v1.10.0

Compare Source

  • Add support for the recently added assert_called method in Python 3.6 and mock-2.0. Thanks @rouge8_ for the PR (#115_).

.. _#115:https://github.com/pytest-dev/pytest-mock/pull/1155

v1.9.0

Compare Source

  • Add support for the recently added assert_called_once method in Python 3.6 and mock-2.0. Thanks @rouge8_ for the PR (#113_).

.. _#113:https://github.com/pytest-dev/pytest-mock/pull/1133

v1.8.0

Compare Source

  • Add aliases for NonCallableMock and create_autospec to mocker. Thanks @mlhamel_ for the PR (#111_).

.. _#111:https://github.com/pytest-dev/pytest-mock/pull/1111

v1.7.1

Compare Source

  • Fix setup.py to correctly read the README.rst. Thanks @ghisvail_ for the fix (#107_).

.. _#107:https://github.com/pytest-dev/pytest-mock/issues/1077

v1.7.0

Compare Source

Incompatible change

  • pytest-mock no longer supports Python 2.6 and Python 3.3, following the lead of
    pytest and other projects in the community. Thanks @hugovk_ for the PR (#96_).

Packaging

  • Fix mock requirement in Python 2. Thanks @ghisvail_ for the report (#101_).

Internal

  • Some tests in pytest-mock's suite are skipped if assertion rewriting is disabled (#102_).

.. _@​ghisvail: https://github.com/ghisvail
.. _@​hugovk: https://github.com/hu[https://github.com/pytest-dev/pytest-mock/pull/96](https://github.com/pytest-dev/pytest-mock/pull/96)st-mock/pul[https://github.com/pytest-dev/pytest-mock/issues/101](https://github.com/pytest-dev/pytest-mock/issues/101)-mock/issue[https://github.com/pytest-dev/pytest-mock/issues/102](https://github.com/pytest-dev/pytest-mock/issues/102)t-mock/issues/102

v1.6.3

Compare Source

  • Fix UnicodeDecodeError during assert introspection in assert_called_with in Python 2.
    Thanks @AndreasHogstrom_ for the report (#91_).

.. _@​AndreasHogstrom: https://github.com/AndreasHogstrom

.. _#91:https://github.com/pytest-dev/pytest-mock/issues/911

v1.6.2

Compare Source

  • Provide source package in tar.gz format and remove obsolete MANIFEST.in.

v1.6.1

Compare Source

  • Fix mocker.resetall() by ignoring mocker objects which don't have a
    resetall method, like for example patch.dict.
    Thanks @jdavisp3_ for the PR (#88_).

.. _@​jdavisp3: https://github.com/jdavisp3

.. _#88:https://github.com/pytest-dev/pytest-mock/pull/888

v1.6.0

Compare Source

  • 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:https://github.com/pytest-dev/pytest-mock/pull/799

v1.5.0

Compare Source

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

.. _#71:https://github.com/pytest-dev/pytest-mock/pull/711

v1.4.0

Compare Source

  • 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.html#default>_ is now available from
    the mocker fixture.

.. _#68:https://github.com/pytest-dev/pytest-mock/issues/688

v1.3.0

Compare Source

  • 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/pokid[https://github.com/pytest-dev/pytest-mock/issues/59](https://github.com/pytest-dev/pytest-mock/issues/59)-mock/issu[https://github.com/pytest-dev/pytest-mock/pull/66](https://github.com/pytest-dev/pytest-mock/pull/66)est-mock/pull/66


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

@mend-for-github-com mend-for-github-com bot changed the title Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 Jan 26, 2024
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed May 1, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch May 1, 2024 06:11
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/pytest-mock-1.x branch May 3, 2024 06:12
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed [NEUTRAL] Update dependency pytest-mock to v1.13.0 May 3, 2024
@mend-for-github-com mend-for-github-com bot reopened this May 3, 2024
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed May 15, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch May 15, 2024 05:45
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed [NEUTRAL] Update dependency pytest-mock to v1.13.0 May 16, 2024
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/pytest-mock-1.x branch May 16, 2024 05:45
@mend-for-github-com mend-for-github-com bot reopened this May 16, 2024
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed May 19, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch May 19, 2024 05:20
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed [NEUTRAL] Update dependency pytest-mock to v1.13.0 May 20, 2024
@mend-for-github-com mend-for-github-com bot reopened this May 20, 2024
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/pytest-mock-1.x branch May 20, 2024 06:11
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed May 22, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch May 22, 2024 05:46
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed [NEUTRAL] Update dependency pytest-mock to v1.13.0 May 23, 2024
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/pytest-mock-1.x branch May 23, 2024 05:42
@mend-for-github-com mend-for-github-com bot reopened this May 23, 2024
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed May 29, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch May 29, 2024 05:34
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/pytest-mock-1.x branch June 3, 2024 05:36
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed [NEUTRAL] Update dependency pytest-mock to v1.13.0 Jun 3, 2024
@mend-for-github-com mend-for-github-com bot reopened this Jun 3, 2024
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency pytest-mock to v1.13.0 [NEUTRAL] Update dependency pytest-mock to v1.13.0 - autoclosed Jul 1, 2024
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/pytest-mock-1.x branch July 1, 2024 06:13
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.

0 participants