Releases: getsentry/responses
Releases · getsentry/responses
0.14.0
- Added
responses.matchers
. - Moved
responses.json_params_matcher
toresponses.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 toresponses.add()
. When
enabled, this option will generate aContent-Length
header
based on the number of bytes in the response body.
0.13.4
- Improve typing support
- Use URLs with normalized hostnames when comparing URLs.
0.13.3
- Switch from Travis to GHA for deployment.
Responses 0.13.2
- Fixed incorrect type stubs for
add_callback
Responses 0.13.1
- Fixed packages not containing type stubs.
Responses 0.13.0
responses.upsert()
was added. This method willadd()
a response if one has not already been registered for a URL, orreplace()
an existing response.responses.registered()
was added. The method allows you to get a list of the currently registered responses. This formalizes the previously privateresponses.mock._matches
method.- A more useful
__repr__
has been added toResponse
. - Error messages have been improved.
Responses 0.12.1
responses.urlencoded_params_matcher
andresponses.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
- Removed support for python 3.4
Responses 0.11.0
- Added the
match
parameter toadd()
. - Added
responses.urlencoded_params_matcher()
andresponses.json_params_matcher()
.
Responses 0.10.16
Fixes
- Add a requirements pin to urllib3. This helps prevent broken install states where
cookie usage fails.