Skip to content

Releases: getsentry/responses

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().

Responses 0.10.16

11 Aug 02:49
Compare
Choose a tag to compare

Fixes

  • Add a requirements pin to urllib3. This helps prevent broken install states where
    cookie usage fails.