Updated dependency to urllib3>=2 and requests>=2.30.0. See #635
Fixed issue when custom adapters were sending only positional args. See #642
Expose unbound_on_send method in RequestsMock class. This method returns new function
that is called by RequestsMock instead of original send method defined by any adapter.
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,
Updated dependency to urllib3>=2 and requests>=2.30.0. See #635
Fixed issue when custom adapters were sending only positional args. See #642
Expose unbound_on_send method in RequestsMock class. This method returns new function
that is called by RequestsMock instead of original send method defined by any adapter.
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.
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.14.0 to 0.23.2.
Release notes
Sourced from responses's releases.
... (truncated)
Changelog
Sourced from responses's changelog.
... (truncated)
Commits
c23ac70
release: 0.23.2d85f343
move unbound_send outside of the function (#648)b437935
python 3.7 notice (#649)4fa21e6
bumpblack
in precommit and run on the lib (#647)a23f22d
move all passthru functions into one class (#646)c25a1c8
Fix issue with custom adapters (#643)c5d193f
Merge pull request #640 from getsentry/asottile-sentry-patch-112677ef
promote responses to internal pypi automatically15b71f2
align CI to use tox (#637)0713065
fix test compatibility with urllib3 (#636)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)