WeRoBot
WeRoBot copied to clipboard
build(deps): bump responses from 0.12.1 to 0.22.0
Bumps responses from 0.12.1 to 0.22.0.
Release notes
Sourced from responses's releases.
0.22.0
- Update
requestsdependency to the version of 2.22.0 or higher. See #584.- [BETA] Added possibility to record responses to TOML files via
@_recorder.record(file_path="out.toml")decorator.- [BETA] Added possibility to replay responses (populate registry) from TOML files via
responses._add_from_file(file_path="out.toml")method.- Fix type for the
mock's patcher object. See #556- Fix type annotation for
CallList- Add
passthroughargument toBaseResponseobject. See #557- Fix
registriesleak. See #563OriginalResponseShimis removed. See #585- Add support for the
looseversion ofjson_params_matchervia named argumentstrict_match. See #551- Add lists support as JSON objects in
json_params_matcher. See #559- Added project links to pypi listing.
delete,get,head,options,patch,post,putshortcuts are now implemented usingfunctools.partialmethod.- Fix
MaxRetryErrorexception. Replace exception byRetryErroraccording torequestsimplementation. See #572.- Adjust error message when
Retryis exhausted. See #580.0.21.0
- Add
threading.Lock()to allowresponsesworking withthreadingmodule.- Add
urllib3Retrymechanism. See #135- Removed internal
_cookies_from_headersfunction- Now
add,upsert,replacemethods return registered response.removemethod returns list of removed responses.- Added null value support in
urlencoded_params_matcherviaallow_blankkeyword argument- Added strict version of decorator. Now you can apply
@responses.activate(assert_all_requests_are_fired=True)to your function to validate that all requests were executed in the wrapped function. See #1830.20.0
- Deprecate
responses.assert_all_requests_are_fired,responses.passthru_prefixes,responses.targetsince they are not actual properties of the class instance. Useresponses.mock.assert_all_requests_are_fired,responses.mock.passthru_prefixes,responses.mock.targetinstead.- Fixed the issue when
reset()method was called in not stopped mock. See #5110.19.0
- Added a registry that provides more strict ordering based on the invocation index. See
responses.registries.OrderedRegistry.- Added shortcuts for each request method: delete, get, head, options, patch, post, put. For example, to add response for POST request you can use
responses.post()instead ofresponses.add(responses.POST).- Prevent
responses.activatedecorator to leak, if wrapped function called from within another wrapped function. Also, allow calling of above mentioned chain. See #481 for more details.- Expose
get_registry()method ofRequestsMockobject. Replaces internal_get_registry().query_param_matchercan now accept dictionaries withintandfloatvalues.- Add support for the
looseversion ofquery_param_matchervia named argumentstrict_match.- Added support for
async/awaitfunctions.response_callbackis no longer executed on exceptions raised by failedResponses- Change logic of
_get_url_and_pathto comply with RFC 3986. Now URL match occurs by matching schema, authority and path, where path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI.
... (truncated)
Changelog
Sourced from responses's changelog.
0.22.0
- Update
requestsdependency to the version of 2.22.0 or higher. See #584.- [BETA] Added possibility to record responses to TOML files via
@_recorder.record(file_path="out.toml")decorator.- [BETA] Added possibility to replay responses (populate registry) from TOML files via
responses._add_from_file(file_path="out.toml")method.- Fix type for the
mock's patcher object. See #556- Fix type annotation for
CallList- Add
passthroughargument toBaseResponseobject. See #557- Fix
registriesleak. See #563OriginalResponseShimis removed. See #585- Add support for the
looseversion ofjson_params_matchervia named argumentstrict_match. See #551- Add lists support as JSON objects in
json_params_matcher. See #559- Added project links to pypi listing.
delete,get,head,options,patch,post,putshortcuts are now implemented usingfunctools.partialmethod.- Fix
MaxRetryErrorexception. Replace exception byRetryErroraccording torequestsimplementation. See #572.- Adjust error message when
Retryis exhausted. See #580.0.21.0
- Add
threading.Lock()to allowresponsesworking withthreadingmodule.- Add
urllib3Retrymechanism. See #135- Removed internal
_cookies_from_headersfunction- Now
add,upsert,replacemethods return registered response.removemethod returns list of removed responses.- Added null value support in
urlencoded_params_matcherviaallow_blankkeyword argument- Added strict version of decorator. Now you can apply
@responses.activate(assert_all_requests_are_fired=True)to your function to validate that all requests were executed in the wrapped function. See #1830.20.0
- Deprecate
responses.assert_all_requests_are_fired,responses.passthru_prefixes,responses.targetsince they are not actual properties of the class instance. Useresponses.mock.assert_all_requests_are_fired,responses.mock.passthru_prefixes,responses.mock.targetinstead.- Fixed the issue when
reset()method was called in not stopped mock. See #5110.19.0
- Added a registry that provides more strict ordering based on the invocation index. See
responses.registries.OrderedRegistry.- Added shortcuts for each request method: delete, get, head, options, patch, post, put. For example, to add response for POST request you can use
responses.post()instead ofresponses.add(responses.POST).- Prevent
responses.activatedecorator to leak, if wrapped function called from within another
... (truncated)
Commits
bbc4f78release: 0.22.0b3caf4cAdd docs for reponse file loading(#590)3bb694bUse partialmethod for shortcuts (#583)a24d964Add docs for recording beta features (#582)caca43cremove OriginalResponseShim (#585)d4ace43[BETA] replay responses from toml files. (#581)873ddb4add docstrings to OrderedRegistry (#587)240504cadd docstrings to registry methods (#586)60931f1adjust error message when Retry is exhausted (#580)7318dddUpdaterequestsdependency to the version of 2.22.0 or higher (#584)- Additional commits viewable in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)