Skip to content

Releases: getsentry/responses

0.15.0

26 Oct 20:13
Compare
Choose a tag to compare
  • Added responses.PassthroughResponse and
    reponses.BaseResponse.passthrough. These features make building passthrough
    responses more compatible with dynamcially generated response objects.
  • Removed the unused _is_redirect() function from responses internals.
  • Added responses.matchers.request_kwargs_matcher. This matcher allows you
    to match additional request arguments like stream.
  • Added responses.matchers.multipart_matcher. This matcher allows you
    to match request body and headers for multipart/form-data data
  • Added responses.matchers.query_string_matcher. This matcher allows you
    to match request query string, similar to responses.matchers.query_param_matcher.
  • Added responses.matchers.header_matcher(). This matcher allows you to match
    request headers. By default only headers supplied to header_matcher() are checked.
    You can make header matching exhaustive by passing strict_match=True to header_matcher().
  • Changed all matchers output message in case of mismatch. Now message is aligned
    between Python2 and Python3 versions
  • Deprecate stream argument in Response and CallbackResponse
  • Added Python 3.10 support

0.14.0

10 Sep 16:04
Compare
Choose a tag to compare
  • Added responses.matchers.
  • Moved responses.json_params_matcher to responses.matchers.json_param_matcher
  • Moved responses.urlencoded_params_matcher to
    responses.matchers.urlencoded_param_matcher
  • Added responses.query_params_matcher. This matcher allows you to match
    query strings with a dictionary.
  • Added auto_calculate_content_length option to responses.add(). When
    enabled, this option will generate a Content-Length header
    based on the number of bytes in the response body.

0.13.4

09 Aug 09:41
Compare
Choose a tag to compare
  • Improve typing support
  • Use URLs with normalized hostnames when comparing URLs.

0.13.3

27 Apr 19:45
Compare
Choose a tag to compare
  • Switch from Travis to GHA for deployment.

Responses 0.13.2

29 Mar 13:33
Compare
Choose a tag to compare
  • Fixed incorrect type stubs for add_callback

Responses 0.13.1

17 Mar 15:46
Compare
Choose a tag to compare
  • Fixed packages not containing type stubs.

Responses 0.13.0

17 Mar 00:27
Compare
Choose a tag to compare
  • responses.upsert() was added. This method will add() a response if one has not already been registered for a URL, or replace() an existing response.
  • responses.registered() was added. The method allows you to get a list of the currently registered responses. This formalizes the previously private responses.mock._matches method.
  • A more useful __repr__ has been added to Response.
  • Error messages have been improved.

Responses 0.12.1

12 Nov 06:50
Compare
Choose a tag to compare
  • responses.urlencoded_params_matcher and responses.json_params_matcher now
    accept None to match empty requests.
  • Fixed imports to work with new urllib3 versions.
  • request.params now allows parameters to have multiple values for the same key.
  • Improved ConnectionError messages.

Responses 0.12.0

30 Aug 01:25
Compare
Choose a tag to compare
  • Removed support for python 3.4

Responses 0.11.0

24 Aug 01:18
Compare
Choose a tag to compare
  • Added the match parameter to add().
  • Added responses.urlencoded_params_matcher() and responses.json_params_matcher().