Releases: getsentry/responses
Releases · getsentry/responses
0.16.0
- Fixed regression with
streamparameter deprecation, requests.session() and cookie handling. - Replaced adhoc URL parsing with
urllib.parse. - Added
matchparameter toadd_callbackmethod - Added
responses.matchers.fragment_identifier_matcher. This matcher allows you
to match request URL fragment identifier. - Improved test coverage.
- Fixed failing test in python 2.7 when
python-futureis also installed.
0.15.0
- Added
responses.PassthroughResponseand
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 likestream. - Added
responses.matchers.multipart_matcher. This matcher allows you
to match request body and headers formultipart/form-datadata - Added
responses.matchers.query_string_matcher. This matcher allows you
to match request query string, similar toresponses.matchers.query_param_matcher. - Added
responses.matchers.header_matcher(). This matcher allows you to match
request headers. By default only headers supplied toheader_matcher()are checked.
You can make header matching exhaustive by passingstrict_match=Truetoheader_matcher(). - Changed all matchers output message in case of mismatch. Now message is aligned
between Python2 and Python3 versions - Deprecate
streamargument inResponseandCallbackResponse - Added Python 3.10 support
0.14.0
- Added
responses.matchers. - Moved
responses.json_params_matchertoresponses.matchers.json_param_matcher - Moved
responses.urlencoded_params_matcherto
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_lengthoption toresponses.add(). When
enabled, this option will generate aContent-Lengthheader
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._matchesmethod.- A more useful
__repr__has been added toResponse. - Error messages have been improved.
Responses 0.12.1
responses.urlencoded_params_matcherandresponses.json_params_matchernow
accept None to match empty requests.- Fixed imports to work with new
urllib3versions. request.paramsnow allows parameters to have multiple values for the same key.- Improved ConnectionError messages.
Responses 0.12.0
- Removed support for python 3.4