Releases: getsentry/responses
Releases · getsentry/responses
0.25.3
0.25.2
Responses 0.25.1
What's Changed
- Use pytest.mark.asyncio by @markstory in #707
- fix mocked HEAD response when content-length header is present by @ddarricau in #712
- fix(matchers): Don't sort failed matches when printing error message by @mgaligniana in #711
New Contributors
- @ddarricau made their first contribution in #712
- @mgaligniana made their first contribution in #711
Full Changelog: 0.25.0...0.25.1
0.25.0
0.24.1
0.24.0
- Added
BaseResponse.calls
to access calls data of a separate mocked request. See #664 - Added
real_adapter_send
parameter toRequestsMock
that will allow users to set
through which function they would like to send real requests - Added support for re.Pattern based header matching.
- Added support for gzipped response bodies to
json_params_matcher
. - Fix
Content-Type
headers issue when the header was duplicated. See #644 - Moved types-pyyaml dependency to
tests_requires
- Removed Python3.7 support
0.23.3
- Allow urllib3>=1.25.10
0.23.2
This release is the last to support Python 3.7
- 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 inRequestsMock
class. This method returns new function
that is called byRequestsMock
instead of originalsend
method defined by any adapter.
0.23.1
0.23.0
- Add Python 3.11 support
- Fix type annotations of
CallList
. See #593 request
object is attached to any custom exception provided asResponse
body
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