Repository navigation
Releases: getsentry/responses
Releases · getsentry/responses
Release list
0.26.3
- Added a
keep_headersargument to_recorder.recordand
Recorder.dump_to_fileto preserve named headers (for exampleDate)
that are otherwise stripped as verbose defaults, so a signed response can be
recorded and later verified. Matching is case-insensitive. See #763 - Fixed the element type exposed by
CallListso static type checkers infer
Callvalues when iterating, indexing, or filtering recorded calls. See #722 - Fixed
query_string_matcher(and the query matching auto-applied to a
registered URL's own query string) discarding blank-valued query params
(b=), which caused requests with an extra or missing blank param to
match incorrectly. See #804 - Fixed
fragment_identifier_matchertreating opaque fragments (those without
=, e.g./users/5) as always equal, so a required fragment matched a
different one or none at all. See #806
0.26.2
- Default headers (such as
Content-Type,DateandServer) are now stripped
from recorded files regardless of header name case. Previously, responses recorded from
servers that send lowercase header names (for example over HTTP/2) kept these redundant
headers in the generated file. - Fixed
query_param_matchermutating the caller's params dict when numeric
values are provided. See #801
0.26.1
- Added Spanish translation of the README (
README.es.rst) - When both
content_typeandheaders['content-type']are in a response mock file,
content_typeis now used. - Added strict_match to urlencoded_params_matcher, enabling partial request parameter
matching.
0.26.0
- When using
assert_all_requests_are_fired=True, assertions about
unfired requests are now raised even when an exception occurs in the context manager or
decorated function. Previously, these assertions were suppressed when exceptions occurred.
This new behavior provides valuable debugging context about which mocked requests were
or weren't called. - Consider the
Retry-Afterheader when handling retries
0.25.8
0.25.7
0.25.6
0.25.5
0.25.3
- Fixed
recordernot saving and loading response headers with yaml files. See #715
0.25.2
- Mulligan on 0.25.1 to run release pipeline correctly.
- Added
matchers.body_matcherfor matching string request bodies. See #717