dependabot[bot] opened a new pull request, #2518: URL: https://github.com/apache/plc4x/pull/2518
Updates the requirements on [mock](https://github.com/testing-cabal/mock) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst">mock's changelog</a>.</em></p> <blockquote> <h2>5.2.0</h2> <p>This is release is <code>in memory of Michael Foord</code>__, who originally authored the <code>mock</code> package and passed away in January 2025.</p> <p>__ <a href="https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317">https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317</a></p> <ul> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/65454">gh-65454</a>: :func:<code>unittest.mock.Mock.attach_mock</code> no longer triggers a call to a <code>PropertyMock</code> being attached.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/117765">gh-117765</a>: Improved documentation for :func:<code>unittest.mock.patch.dict</code></p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/124176">gh-124176</a>: Add support for :func:<code>dataclasses.dataclass</code> in :func:<code>unittest.mock.create_autospec</code>. Now <code>create_autospec</code> will check for potential dataclasses and use :func:<code>dataclasses.fields</code> function to retrieve the spec information.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/123934">gh-123934</a>: Fix :class:<code>unittest.mock.MagicMock</code> reseting magic methods return values after <code>.reset_mock(return_value=True)</code> was called.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/90848">gh-90848</a>: Fixed :func:<code>unittest.mock.create_autospec</code> to configure parent mock with keyword arguments.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/113569">gh-113569</a>: Indicate if there were no actual calls in unittest :meth:<code>~unittest.mock.Mock.assert_has_calls</code> failure.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/122858">gh-122858</a>: Deprecate :func:<code>!asyncio.iscoroutinefunction</code> in favor of :func:<code>inspect.iscoroutinefunction</code>.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/104745">gh-104745</a>: Limit starting a patcher (from :func:<code>unittest.mock.patch</code> or :func:<code>unittest.mock.patch.object</code>) more than once without stopping it</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/75988">gh-75988</a>: Fixed :func:<code>unittest.mock.create_autospec</code> to pass the call through to the wrapped object to return the real result.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/119600">gh-119600</a>: Fix :func:<code>unittest.mock.patch</code> to not read attributes of the target when <code>new_callable</code> is set. Patch by Robert Collins.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/113407">gh-113407</a>: Fix import of :mod:<code>unittest.mock</code> when CPython is built without docstrings.</p> </li> <li> <p><a href="https://redirect.github.com/testing-cabal/mock/issues/120732">gh-120732</a>: Fix <code>name</code> passing to :class:<code>unittest.mock.Mock</code> object when using :func:<code>unittest.mock.create_autospec</code>.</p> </li> </ul> <h2>5.1.0</h2> <ul> <li>bpo-44185: :func:<code>unittest.mock.mock_open</code> will call the :func:<code>close</code> method of the file handle mock when it is exiting from the context</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/testing-cabal/mock/commit/0f5df822bde4729cb2190819ad01a8728ddc9de3"><code>0f5df82</code></a> In memoriam: Michael Foord 1974-2025</li> <li><a href="https://github.com/testing-cabal/mock/commit/3c737e2454dad995d0397e0d05c8a7a3a41f484d"><code>3c737e2</code></a> Preparing for 5.2.0 release.</li> <li><a href="https://github.com/testing-cabal/mock/commit/563f3115652a4d889e93a4751d1e04dc20dd5d0a"><code>563f311</code></a> latest sync point</li> <li><a href="https://github.com/testing-cabal/mock/commit/4fc238eb1c612a148e198e743bba0b200896417c"><code>4fc238e</code></a> <code>unittest.mock</code> test and coverage fixup (<a href="https://redirect.github.com/testing-cabal/mock/issues/130787">#130787</a>)</li> <li><a href="https://github.com/testing-cabal/mock/commit/aee44ede42c4cb4d529701352445806e730e62f8"><code>aee44ed</code></a> Backport-specific code coverage fixes</li> <li><a href="https://github.com/testing-cabal/mock/commit/9081bbe8183c83f84309abd61dc879c2d9510abc"><code>9081bbe</code></a> Fix bug in backporting docs</li> <li><a href="https://github.com/testing-cabal/mock/commit/fdacaa2b68e3bb06851bfb991ecd8ed063b49f3e"><code>fdacaa2</code></a> Add set_event_loop_policy to backports</li> <li><a href="https://github.com/testing-cabal/mock/commit/4221c21ff6a373e4bdf566e014f234b7d67dd946"><code>4221c21</code></a> Revert "<a href="https://redirect.github.com/testing-cabal/mock/issues/71339">gh-71339</a>: Add additional assertion methods for unittest (<a href="https://redirect.github.com/testing-cabal/mock/issues/128707">GH-128707</a>)"</li> <li><a href="https://github.com/testing-cabal/mock/commit/45d2d494c645cdd6cbe005591ab5cc28fc33dd58"><code>45d2d49</code></a> <a href="https://redirect.github.com/testing-cabal/mock/issues/71339">gh-71339</a>: Add additional assertion methods for unittest (<a href="https://redirect.github.com/testing-cabal/mock/issues/128707">GH-128707</a>)</li> <li><a href="https://github.com/testing-cabal/mock/commit/9e3f49cd664d32f9241aaf2ae96e527ae95312a3"><code>9e3f49c</code></a> <a href="https://redirect.github.com/testing-cabal/mock/issues/127949">gh-127949</a>: deprecate <code>asyncio.set_event_loop_policy</code> (<a href="https://redirect.github.com/testing-cabal/mock/issues/128024">#128024</a>)</li> <li>Additional commits viewable in <a href="https://github.com/testing-cabal/mock/compare/4.0.2...5.2.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
