responses v0.15.0 Release Notes
-
- โ Added
responses.PassthroughResponse
andreponses.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-data
data - 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=True
toheader_matcher()
. - ๐ Changed all matchers output message in case of mismatch. Now message is aligned between Python2 and Python3 versions
- ๐ Deprecate
stream
argument inResponse
andCallbackResponse
- โ Added Python 3.10 support
- โ Added