request object is attached to any custom exception provided as Responsebody argument. See #588
Fixed mocked responses leaking between tests when assert_all_requests_are_fired and a request was not fired.
[BETA] Default recorder format was changed to YAML. Added responses.RequestsMock._parse_response_file and
responses._recorder.Recorder.dump_to_file methods that allow users to override default parser to eg toml, json
0.22.0
Update requests dependency 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.
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
request object is attached to any custom exception provided as Responsebody argument. See #588
Fixed mocked responses leaking between tests when assert_all_requests_are_fired and a request was not fired.
[BETA] Default recorder format was changed to YAML. Added responses.RequestsMock._parse_response_file and
responses._recorder.Recorder.dump_to_file methods that allow users to override default parser to eg toml, json
0.22.0
Update requests dependency 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.
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
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.23.1.
Release notes
Sourced from responses's releases.
... (truncated)
Changelog
Sourced from responses's changelog.
... (truncated)
Commits
b94a385
release: 0.23.1e4e140a
Fix formattinga8da5f3
fix #630 (#631)cc74e5a
Merge branch 'release/0.23.0'22a788d
release: 0.23.0e85804a
Change default recorder format to YAML (#624)ec6c755
Fix assert_all_requests_are_fired not reseting (#622)faf6dd9
ref: upgrade isort to work around poetry breakage (#620)48d8af9
Merge pull request #618 from getsentry/mdtro/codeql43c0b63
exclude tests from CodeQL detections to reduce false positive rateDependabot 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)