responses v0.22.0 Release Notes
-
- โก๏ธ Update
requests
dependency to the version of 2.22.0 or higher. See #584. - [BETA] Added possibility to record responses to TOML files via
@_recorder.record(file_path="out.toml")
decorator. - [BETA] Added possibility to replay responses (populate registry) from TOML files
via
responses._add_from_file(file_path="out.toml")
method. - ๐ Fix type for the
mock
's patcher object. See #556 - ๐ Fix type annotation for
CallList
- โ Add
passthrough
argument toBaseResponse
object. See #557 - ๐ Fix
registries
leak. See #563 - ๐
OriginalResponseShim
is removed. See #585 - Add support for the
loose
version ofjson_params_matcher
via named argumentstrict_match
. See #551 - Add lists support as JSON objects in
json_params_matcher
. See #559 - โ Added project links to pypi listing.
delete
,get
,head
,options
,patch
,post
,put
shortcuts are now implemented usingfunctools.partialmethod
.- ๐ Fix
MaxRetryError
exception. Replace exception byRetryError
according torequests
implementation. See #572. - ๐ Adjust error message when
Retry
is exhausted. See #580.
- โก๏ธ Update