Update dependency responses to v0.25.6 #181
Merged
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.12.1->==0.25.6Release Notes
getsentry/responses (responses)
v0.25.6Compare Source
v0.25.5Compare Source
v0.25.3Compare Source
recordernot saving and loading response headers with yaml files. See #715v0.25.2Compare Source
matchers.body_matcherfor matching string request bodies. See #717v0.25.0Compare Source
matchers.header_matchernot failing when a matched header is missing from the request. See #702v0.24.1Compare Source
Callattributes.v0.24.0Compare Source
BaseResponse.callsto access calls data of a separate mocked request. See #664real_adapter_sendparameter toRequestsMockthat will allow users to setthrough which function they would like to send real requests
json_params_matcher.Content-Typeheaders issue when the header was duplicated. See #644tests_requiresv0.23.3Compare Source
v0.23.2Compare Source
unbound_on_sendmethod inRequestsMockclass. This method returns new functionthat is called by
RequestsMockinstead of originalsendmethod defined by any adapter.v0.23.1Compare Source
tomliimport. See #630v0.23.0Compare Source
CallList. See #593requestobject is attached to any custom exception provided asResponsebodyargument. See #588assert_all_requests_are_firedand a request was not fired.responses.RequestsMock._parse_response_fileandresponses._recorder.Recorder.dump_to_filemethods that allow users to override default parser to eg toml, jsonv0.22.0Compare Source
requestsdependency 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 #556CallListpassthroughargument toBaseResponseobject. See #557registriesleak. See #563OriginalResponseShimis removed. See #585looseversion ofjson_params_matchervia named argumentstrict_match. See #551json_params_matcher. See #559delete,get,head,options,patch,post,putshortcuts are now implemented usingfunctools.partialmethod.MaxRetryErrorexception. Replace exception byRetryErroraccording torequestsimplementation. See #572.Retryis exhausted. See #580.v0.21.0Compare Source
threading.Lock()to allowresponsesworking withthreadingmodule.urllib3Retrymechanism. See #135_cookies_from_headersfunctionadd,upsert,replacemethods return registered response.removemethod returns list of removed responses.urlencoded_params_matcherviaallow_blankkeyword 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.0Compare Source
responses.assert_all_requests_are_fired,responses.passthru_prefixes,responses.targetsince they are not actual properties of the class instance.
Use
responses.mock.assert_all_requests_are_fired,responses.mock.passthru_prefixes,responses.mock.targetinstead.reset()method was called in not stopped mock. See #511v0.19.0Compare Source
See
responses.registries.OrderedRegistry.For example, to add response for POST request you can use
responses.post()insteadof
responses.add(responses.POST).responses.activatedecorator 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 ofRequestsMockobject. Replaces internal_get_registry().query_param_matchercan now accept dictionaries withintandfloatvalues.looseversion ofquery_param_matchervia named argumentstrict_match.async/awaitfunctions.response_callbackis no longer executed on exceptions raised by failedResponses_get_url_and_pathto 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_typeandheaders[content-type]are provided as parameters.v0.18.0Compare Source
responses.activatedecorator. See #468_is_stringand_ensure_strfunctions_quotefromtest_responses.py_matchesattribute ofRequestsMockobject.in
responses.add_callbackdue tomatch_querystring. See #464v0.17.0Compare Source
response.iter_contentwhenchunk_size=Noneentered infinite looppassthru_prefixespersisted across tests.Now
add_passthruis valid only within a context manager or for a single function andcleared on exit
match_querystringargument inResponseandCallbackResponse.Use
responses.matchers.query_param_matcherorresponses.matchers.query_string_matcherresponses.matchers.multipart_matcherresponses.registries. Now user can create custom registries tomanipulate the order of responses in the match algorithm
responses.activate(registry=CustomRegistry)same URL. See Issue #212
v0.16.0Compare Source
streamparameter deprecation, requests.session() and cookie handling.urllib.parse.matchparameter toadd_callbackmethodresponses.matchers.fragment_identifier_matcher. This matcher allows youto match request URL fragment identifier.
python-futureis also installed.v0.15.0Compare Source
responses.PassthroughResponseandreponses.BaseResponse.passthrough. These features make building passthroughresponses more compatible with dynamcially generated response objects.
_is_redirect()function from responses internals.responses.matchers.request_kwargs_matcher. This matcher allows youto match additional request arguments like
stream.responses.matchers.multipart_matcher. This matcher allows youto match request body and headers for
multipart/form-datadataresponses.matchers.query_string_matcher. This matcher allows youto match request query string, similar to
responses.matchers.query_param_matcher.responses.matchers.header_matcher(). This matcher allows you to matchrequest headers. By default only headers supplied to
header_matcher()are checked.You can make header matching exhaustive by passing
strict_match=Truetoheader_matcher().between Python2 and Python3 versions
streamargument inResponseandCallbackResponsev0.14.0Compare Source
responses.matchers.responses.json_params_matchertoresponses.matchers.json_params_matcherresponses.urlencoded_params_matchertoresponses.matchers.urlencoded_params_matcherresponses.matchers.query_param_matcher. This matcher allows youto match query strings with a dictionary.
auto_calculate_content_lengthoption toresponses.add(). Whenenabled, this option will generate a
Content-Lengthheaderbased on the number of bytes in the response body.
v0.13.4Compare Source
v0.13.3Compare Source
v0.13.2Compare Source
add_callbackv0.13.1Compare Source
v0.13.0Compare Source
responses.upsert()was added. This method willadd()a response if onehas not already been registered for a URL, or
replace()an existingresponse.
responses.registered()was added. The method allows you to get a list ofthe currently registered responses. This formalizes the previously private
responses.mock._matchesmethod.__repr__has been added toResponse.Configuration
📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, 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.
This PR was generated by Mend Renovate. View the repository job log.