chore(deps): update dependency pook to v2 #406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.4.3
->2.1.1
Release Notes
h2non/pook (pook)
v2.1.1
Compare Source
Flush mocks when
pook.activate
used as a wrapper by @shift0965 in https://github.com/h2non/pook/pull/145.v2.1.0
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
See https://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
'sbinary
parameter and enforce a keyword argument forchunked
.binary
parameter is no longer needed since responses are now always byte-encoded in all cases (see below).chunked
to ensure unnamed arguments meant for the removedbinary
parameter cannot be confused aschunked
arguments.Only return byte-encoded response bodies, matching the bahviour of all supported client libraries.
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.
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 responsebodies, that code can be safely deleted (provided the only reason it was there was pook in the first place).
Breaking change: Remove
Mock::body
'sbinary
parameter.BodyMatcher
),so this will not cause any changes to tests that relied on it: it didn't do anything to begin with.
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
andJSONMatcher
to no longer suggest they can handle regex matchers.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.