claranet / tfwrapper

Claranet France Terraform & OpenTofu Wrapper
Mozilla Public License 2.0
132 stars 20 forks source link

chore(deps): update dependency pook to v2 #406

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pook 1.4.3 -> 2.1.1 age adoption passing confidence

Release Notes

h2non/pook (pook) ### [`v2.1.1`](https://redirect.github.com/h2non/pook/blob/HEAD/History.rst#v211--2024-10-15) [Compare Source](https://redirect.github.com/h2non/pook/compare/v2.1.0...v2.1.1) - Flush mocks when `pook.activate` used as a wrapper by [@​shift0965](https://redirect.github.com/shift0965) in [https://github.com/h2non/pook/pull/145](https://redirect.github.com/h2non/pook/pull/145). - This prevents mocks from leaking between test cases and should fix some potentially confusing edge case bugs. ### [`v2.1.0`](https://redirect.github.com/h2non/pook/blob/HEAD/History.rst#v210--2024-10-08) [Compare Source](https://redirect.github.com/h2non/pook/compare/v2.0.1...v2.1.0) - Drop support for Python 3.8 (it is EOL 2024-10-07) ### [`v2.0.1`](https://redirect.github.com/h2non/pook/blob/HEAD/History.rst#v201--2024-10-08) [Compare Source](https://redirect.github.com/h2non/pook/compare/v2.0.0...v2.0.1) - Improve aiohttp JSONMatcher support by [@​KyleJamesWalker](https://redirect.github.com/KyleJamesWalker) in [https://github.com/h2non/pook/pull/139](https://redirect.github.com/h2non/pook/pull/139) ### [`v2.0.0`](https://redirect.github.com/h2non/pook/blob/HEAD/History.rst#v200--2024-07-01) [Compare Source](https://redirect.github.com/h2non/pook/compare/v1.4.3...v2.0.0) See [https://github.com/h2non/pook/issues/128](https://redirect.github.com/h2non/pook/issues/128) for a summary of the breaking changes and how to update your code if you are affected. - **Breaking change**: Remove `Response::body`'s `binary` parameter and enforce a keyword argument for `chunked`. - The `binary` parameter is no longer needed since responses are now always byte-encoded in all cases (see below). - A keyword argument is now enforced for `chunked` to ensure unnamed arguments meant for the removed `binary` parameter cannot be confused as `chunked` arguments. - Only return byte-encoded response bodies, matching the bahviour of all supported client libraries. - This is possible because for all supported client libraries, pook mocks the actual response sent to the client library over the wire, which will, in all cases, be bytes. Client libraries that support reading response content as a string or other formats will continue to work as expected, because they'll always be handling bytes from pook. - This causes no change to application code for users of pook, except for users of the standard library `urllib`, for which this also fixed a bug where non-bytes bodies were returned by pook in certain cases. This is impossible in real application code. If you rely on pook to mock `urllib` responses and have code that handles non-bytes response bodies, that code can be safely deleted (provided the only reason it was there was pook in the first place). - **Breaking change**: Remove `Mock::body`'s `binary` parameter. - This parameter was already unused due to a bug in the code (it was not passed through to the `BodyMatcher`), so this will not cause any changes to tests that relied on it: it didn't do anything to begin with. - The breaking change is simply the removal of the unused parameter, which should be deleted from tests using pook. - Pook's code has also been updated to remove all cases where non-bytes objects were being handled. Instead, the body of any interecepted request will always be stored as bytes, and only decoded when necessary for individual downstream matchers (JSON, XML). - Correct documentation strings for `XMLMatcher` and `JSONMatcher` to no longer suggest they can handle regex matchers. - These classes never implemented regex matching. - Add a pytest fixture to the package.

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 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.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 3 months ago

Coverage report

This PR does not seem to contain any modification to coverable code.