← Back to issue list

build(deps): update dependency pytest-mock to v3.17.0 (main)

View original Github issue

Metadata

Project
craft-cli
Number
#511
Type
pull request
State
merged
Author
renovate
Labels
PR: Dependencies
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Renovate PR updating pytest-mock from v3.16.0 to v3.17.0. All CI checks passing, automerge enabled, no review comments.

Resolution: needs review

Reason: This is a routine automated dependency update (pytest-mock v3.16.0 → v3.17.0) with all CI checks passing and automerge enabled. The diff is minimal (+6/-6 lines, 2 files) and only affects a test dependency. Ready for maintainer review and merge.

Evaluated by: mr-cal-bot

Impact: 15 Quick Win: 11 Complexity: 5 Confidence: 95 Actionability: 80

Issue body

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [pytest-mock](https://redirect.github.com/pytest-dev/pytest-mock) ([changelog](https://pytest-mock.readthedocs.io/en/latest/changelog.html)) | `==3.16.0` → `==3.17.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-mock/3.17.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-mock/3.16.0/3.17.0?slim=true) | --- ### Release Notes <details> <summary>pytest-dev/pytest-mock (pytest-mock)</summary> ### [`v3.17.0`](https://redirect.github.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#3170) [Compare Source](https://redirect.github.com/pytest-dev/pytest-mock/compare/v3.16.1...v3.17.0) *2026-10-17* - `#&#8203;641 <https://github.com/pytest-dev/pytest-mock/pull/641>`\_: Failures of mock assertions such as `assert_called_with` are again reported only once, instead of two or three times with the original error from the `mock` module chained before them. - `#&#8203;642 <https://github.com/pytest-dev/pytest-mock/pull/642>`\_: Mock assertion failures no longer show misleading introspection when they are not about the arguments of the last call: `assert_called`, `assert_called_once`, `assert_not_called`, `assert_any_call`, their `await` counterparts, and `assert_called_once_with`/`assert_awaited_once_with` when the mock was not called (awaited) exactly once. The introspection also no longer reports arguments passed by position versus by keyword as different for autospecced mocks, and no longer shows empty `Args:`/`Kwargs:` sections when assertion rewriting is not available. - `#&#8203;643 <https://github.com/pytest-dev/pytest-mock/pull/643>`\_: `assert_has_calls` and `assert_has_awaits` failures no longer show pytest introspection, which compared the expected and actual calls position by position and so reported differences between unrelated calls. The mock's own message, listing the expected and actual calls, is still shown. ### [`v3.16.1`](https://redirect.github.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#3161) [Compare Source](https://redirect.github.com/pytest-dev/pytest-mock/compare/v3.16.0...v3.16.1) *2026-10-17* - `#&#8203;617 <https://github.com/pytest-dev/pytest-mock/pull/617>`\_: Fixed `assert_has_calls` raising `ValueError` instead of `AssertionError` (or showing misleading introspection) when the expected calls are plain tuples rather than `call(...)` objects, such as `(args, kwargs)` entries of another mock's `call_args_list`, `(args,)`, `(kwargs,)`, `(name, args)` or `(name, kwargs)`. - `#&#8203;621 <https://github.com/pytest-dev/pytest-mock/pull/621>`\_: Fixed `mocker.stop()` sometimes stopping the wrong mock, for example with mocks from `mocker.create_autospec`. - `#&#8203;621 <https://github.com/pytest-dev/pytest-mock/pull/621>`\_: `mocker.stop()` now undoes the most recent patch first when the same object is used in several patches. - `#&#8203;623 <https://github.com/pytest-dev/pytest-mock/pull/623>`\_: Fixed misleading introspection in `assert_has_awaits` failures, and `assert_has_calls`/`assert_has_awaits` raising `IndexError` instead of `AssertionError` when `calls` is passed by keyword. - `#&#8203;624 <https://github.com/pytest-dev/pytest-mock/pull/624>`\_: Clear `spy_return_iter` after a spied synchronous or asynchronous function raises, matching `spy_return`. - `#&#8203;627 <https://github.com/pytest-dev/pytest-mock/pull/627>`\_: Document `async_stub` await assertions and the distinction between call and await tracking. - `#&#8203;629 <https://github.com/pytest-dev/pytest-mock/pull/629>`\_: Fixed `mocker.resetall()` skipping the mocks patched with `mocker.patch.multiple()`, both the ones it creates and the ones passed explicitly. - `#&#8203;630 <https://github.com/pytest-dev/pytest-mock/pull/630>`\_: `mocker.resetall()` now also resets `spy_return` and `spy_exception` of spies, like it already did for `spy_return_list` and `spy_return_iter`, and no longer overwrites attributes with these names on mocks that are not spies. - `#&#8203;633 <https://github.com/pytest-dev/pytest-mock/pull/633>`\_: Fixed spies on `classmethod`, `staticmethod`, builtins and classes returning a `MagicMock` instead of calling the spied code after `mocker.resetall(side_effect=True)`. Resetting a spy's `side_effect` now goes back to calling the spied code, also clearing any `side_effect` set on the spy. </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "every weekend" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/canonical/craft-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJQUjogRGVwZW5kZW5jaWVzIl19-->

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b
Impact: 15
Quick Win: 11
Complexity: 5
Confidence: 95
Actionability: 80
needs review Renovate PR updating pytest-mock from v3.16.0 to v3.17.0. All CI checks passing, automerge enabled, no review comments.

Update history

Date Change
merged
created

Related work

  • Related To: craft-cli#491 (confidence 90%)

    Previous pytest-mock update to v3.16.0; this PR continues the same dependency update sequence.

Related issues

Issue Project State Summary Similarity
#491 build(deps): update dependency pytest-mock to v3.16.0 (main) craft-cli merged Renovate PR #491 bumped the test-only dependency pytest-mock from ==3.15.1 to ==3.16.0 in pyproject.toml and uv.lock (+6/-6), with all CI jobs green. Merged into main.
89%
#388 build(deps): update dependency pytest-mock to v3.15.1 craft-cli merged Renovate dependency bump of pytest-mock from 3.14.0 to 3.15.1 merged into main via commit 1c6c944; pyproject.toml and uv.lock updated to ==3.15.1, all CI checks green.
86%
#178 build(deps): update dependency pytest-mock to v3.14.1 (main) craft-archives closed pytest-mock 3.14.1 update PR #178 was closed unmerged after minimum-dependencies tests failed; Renovate then ignored that version. No resolving commit was recorded.
85%
#272 build(deps): update dependency pytest-check to v3 (main) craft-archives merged Renovate PR updating pytest-check from ~=2.5 to ~=3.0. All CI checks passing, no review comments, awaiting maintainer review.
85%
#321 build(deps): update dependency pytest-mock to v3.15.1 (main) craft-store merged Renovate's pytest-mock 3.14.1→3.15.1 update passed all CI checks and merged into main via #321 (commit e91a16b).
84%
#716 build(deps): update dependency pytest-mock to v3.14.1 (hotfix/1.20) craft-providers closed pytest-mock 3.14.1 hotfix PR was closed unmerged; Renovate marked the version update as ignored rather than shipping it.
80%
#827 build(deps): update dependency pytest-check to v2.5.3 (main) craft-application merged Renovate PR #827 merged (commit 259acbad), bumping pytest-check 2.4.1 -> 2.5.3 in main. Approved by 3 reviewers with all CI checks green.
79%
#1233 build(deps): update dependency pytest-check to v2.10.1 (main) craft-application open Renovate PR updating pytest-check from 2.9.1 to 2.10.1. CI passing, automerge enabled, minimal diff (+5/-5 lines across 2 files).
79%
#548 chore(deps): update dependency pytest-mock to v3.14.0 rockcraft merged Renovate PR merged in commit 3f77b24f, bumping pytest-mock from ==3.12.0 to ==3.14.0 (1-line change); approved by 2 reviewers, no CI changes needed.
78%
#6179 build(deps): update pytest snapcraft merged Merged PR #6179 (commit 3648cbb0c) bumps the pytest dev dependency in a single file (+3/-3) to remediate an OSV vulnerability; all CI checks passed except integration-spread-tests-store.
77%