Now add, upsert, replace methods return registered response.
remove method returns list of removed responses.
Added null value support in urlencoded_params_matcher via allow_blank keyword 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 #183
0.20.0
Deprecate 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.
Fixed the issue when reset() method was called in not stopped mock. See #511
0.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
of responses.add(responses.POST).
Prevent responses.activate decorator 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 of RequestsMock object. Replaces internal _get_registry().
query_param_matcher can now accept dictionaries with int and float values.
Add support for the loose version of query_param_matcher via named argument strict_match.
Added support for async/await functions.
response_callback is no longer executed on exceptions raised by failed Responses
Change logic of _get_url_and_path to 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.
Now add, upsert, replace methods return registered response.
remove method returns list of removed responses.
Added null value support in urlencoded_params_matcher via allow_blank keyword 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 #183
0.20.0
Deprecate 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.
Fixed the issue when reset() method was called in not stopped mock. See #511
0.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
of responses.add(responses.POST).
Prevent responses.activate decorator to leak, if wrapped function called from within another
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps responses from 0.10.16 to 0.22.0.
Release notes
Sourced from responses's releases.
... (truncated)
Changelog
Sourced from responses's changelog.
... (truncated)
Commits
bbc4f78
release: 0.22.0b3caf4c
Add docs for reponse file loading(#590)3bb694b
Use partialmethod for shortcuts (#583)a24d964
Add docs for recording beta features (#582)caca43c
remove OriginalResponseShim (#585)d4ace43
[BETA] replay responses from toml files. (#581)873ddb4
add docstrings to OrderedRegistry (#587)240504c
add docstrings to registry methods (#586)60931f1
adjust error message when Retry is exhausted (#580)7318ddd
Updaterequests
dependency to the version of 2.22.0 or higher (#584)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)