fix(deps): update dependency responses to v0.23.1 #537
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:
0.18.0
->0.23.1
Release Notes
getsentry/responses
v0.23.1
Compare Source
tomli
import. See #630v0.23.0
Compare Source
CallList
. See #593request
object is attached to any custom exception provided asResponse
body
argument. See #588assert_all_requests_are_fired
and a request was not fired.responses.RequestsMock._parse_response_file
andresponses._recorder.Recorder.dump_to_file
methods that allow users to override default parser to eg toml, jsonv0.22.0
Compare Source
requests
dependency to the version of 2.22.0 or higher. See #584.@_recorder.record(file_path="out.toml")
decorator.via
responses._add_from_file(file_path="out.toml")
method.mock
's patcher object. See #556CallList
passthrough
argument toBaseResponse
object. See #557registries
leak. See #563OriginalResponseShim
is removed. See #585loose
version ofjson_params_matcher
via named argumentstrict_match
. See #551json_params_matcher
. See #559delete
,get
,head
,options
,patch
,post
,put
shortcuts are now implemented usingfunctools.partialmethod
.MaxRetryError
exception. Replace exception byRetryError
according torequests
implementation. See #572.Retry
is exhausted. See #580.v0.21.0
Compare Source
threading.Lock()
to allowresponses
working withthreading
module.urllib3
Retry
mechanism. See #135_cookies_from_headers
functionadd
,upsert
,replace
methods return registered response.remove
method returns list of removed responses.urlencoded_params_matcher
viaallow_blank
keyword argument@responses.activate(assert_all_requests_are_fired=True)
to your function to validate that all requests were executed in the wrapped function. See #183
v0.20.0
Compare Source
responses.assert_all_requests_are_fired
,responses.passthru_prefixes
,responses.target
since they are not actual properties of the class instance.
Use
responses.mock.assert_all_requests_are_fired
,responses.mock.passthru_prefixes
,responses.mock.target
instead.reset()
method was called in not stopped mock. See #511v0.19.0
Compare Source
See
responses.registries.OrderedRegistry
.For example, to add response for POST request you can use
responses.post()
insteadof
responses.add(responses.POST)
.responses.activate
decorator to leak, if wrapped function called from within anotherwrapped function. Also, allow calling of above mentioned chain. See #481 for more details.
get_registry()
method ofRequestsMock
object. Replaces internal_get_registry()
.query_param_matcher
can now accept dictionaries withint
andfloat
values.loose
version ofquery_param_matcher
via named argumentstrict_match
.async/await
functions.response_callback
is no longer executed on exceptions raised by failedResponse
s_get_url_and_path
to comply with RFC 3986. Now URL match occurs by matchingschema, authority and path, where path is terminated by the first question mark ("?") or
number sign ("#") character, or by the end of the URI.
content_type
andheaders[content-type]
are provided as parameters.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.