Skip to content

Releases: getsentry/responses

0.26.3

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 26 Aug 19:17
  • Added a keep_headers argument to _recorder.record and
    Recorder.dump_to_file to preserve named headers (for example Date)
    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 CallList so static type checkers infer
    Call values 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_matcher treating 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

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 03 Jul 16:44
  • Default headers (such as Content-Type, Date and Server) 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_matcher mutating the caller's params dict when numeric
    values are provided. See #801

0.26.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 21 May 19:56
  • Added Spanish translation of the README (README.es.rst)
  • When both content_type and headers['content-type'] are in a response mock file,
    content_type is now used.
  • Added strict_match to urlencoded_params_matcher, enabling partial request parameter
    matching.

0.26.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 19 Feb 14:38
  • 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-After header when handling retries

0.25.8

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 08 Aug 19:01
  • Fix bug where the content type is always recorded as either text/plain or application/json. See #770
  • Allow asserts on add_callback() matches. See #727

0.25.7

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 11 Mar 15:36
  • Added support for python 3.13

0.25.6

Choose a tag to compare

@getsentry-bot getsentry-bot released this 13 Jan 21:04
release: 0.25.6

0.25.5

Choose a tag to compare

@getsentry-bot getsentry-bot released this 10 Jan 15:35
release: 0.25.5

0.25.3

Choose a tag to compare

@getsentry-bot getsentry-bot released this 14 Jun 16:33
  • Fixed recorder not saving and loading response headers with yaml files. See #715

0.25.2

Choose a tag to compare

@getsentry-bot getsentry-bot released this 06 Jun 14:55
  • Mulligan on 0.25.1 to run release pipeline correctly.
  • Added matchers.body_matcher for matching string request bodies. See #717