Closed renovate[bot] closed 1 year ago
Merging #17 (4e87520) into main (58b032a) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #17 +/- ##
=======================================
Coverage 98.71% 98.71%
=======================================
Files 3 3
Lines 312 312
=======================================
Hits 308 308
Misses 4 4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
This PR contains the following updates:
==0.17.0
->==0.22.0
Release Notes
getsentry/responses
### [`v0.22.0`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0220) [Compare Source](https://togithub.com/getsentry/responses/compare/0.21.0...0.22.0) - Update `requests` dependency to the version of 2.22.0 or higher. See [#584](https://togithub.com/getsentry/responses/issues/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](https://togithub.com/getsentry/responses/issues/556) - Fix type annotation for `CallList` - Add `passthrough` argument to `BaseResponse` object. See [#557](https://togithub.com/getsentry/responses/issues/557) - Fix `registries` leak. See [#563](https://togithub.com/getsentry/responses/issues/563) - `OriginalResponseShim` is removed. See [#585](https://togithub.com/getsentry/responses/issues/585) - Add support for the `loose` version of `json_params_matcher` via named argument `strict_match`. See [#551](https://togithub.com/getsentry/responses/issues/551) - Add lists support as JSON objects in `json_params_matcher`. See [#559](https://togithub.com/getsentry/responses/issues/559) - Added project links to pypi listing. - `delete`, `get`, `head`, `options`, `patch`, `post`, `put` shortcuts are now implemented using `functools.partialmethod`. - Fix `MaxRetryError` exception. Replace exception by `RetryError` according to `requests` implementation. See [#572](https://togithub.com/getsentry/responses/issues/572). - Adjust error message when `Retry` is exhausted. See [#580](https://togithub.com/getsentry/responses/issues/580). ### [`v0.21.0`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0210) [Compare Source](https://togithub.com/getsentry/responses/compare/0.20.0...0.21.0) - Add `threading.Lock()` to allow `responses` working with `threading` module. - Add `urllib3` `Retry` mechanism. See [#135](https://togithub.com/getsentry/responses/issues/135) - Removed internal `_cookies_from_headers` function - Now `add`, `upsert`, `replace` methods return registered response. `remove` method returns list of removed responses. - Added null value support in `urlencoded_params_matcher` via `allow_blank` keyword argument - Added strict version of decorator. Now you can apply `@responses.activate(assert_all_requests_are_fired=True)` to your function to validate that all requests were executed in the wrapped function. See [#183](https://togithub.com/getsentry/responses/issues/183) ### [`v0.20.0`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0200) [Compare Source](https://togithub.com/getsentry/responses/compare/0.19.0...0.20.0) - Deprecate `responses.assert_all_requests_are_fired`, `responses.passthru_prefixes`, `responses.target` since they are not actual properties of the class instance. Use `responses.mock.assert_all_requests_are_fired`, `responses.mock.passthru_prefixes`, `responses.mock.target` instead. - Fixed the issue when `reset()` method was called in not stopped mock. See [#511](https://togithub.com/getsentry/responses/issues/511) ### [`v0.19.0`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0190) [Compare Source](https://togithub.com/getsentry/responses/compare/0.18.0...0.19.0) - Added a registry that provides more strict ordering based on the invocation index. See `responses.registries.OrderedRegistry`. - Added shortcuts for each request method: delete, get, head, options, patch, post, put. For example, to add response for POST request you can use `responses.post()` instead of `responses.add(responses.POST)`. - Prevent `responses.activate` decorator to leak, if wrapped function called from within another wrapped function. Also, allow calling of above mentioned chain. See [#481](https://togithub.com/getsentry/responses/issues/481) for more details. - Expose `get_registry()` method of `RequestsMock` object. Replaces internal `_get_registry()`. - `query_param_matcher` can now accept dictionaries with `int` and `float` values. - Add support for the `loose` version of `query_param_matcher` via named argument `strict_match`. - Added support for `async/await` functions. - `response_callback` is no longer executed on exceptions raised by failed `Response`s - Change logic of `_get_url_and_path` to comply with RFC 3986. Now URL match occurs by matching schema, authority and path, where path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI. - An error is now raised when both `content_type` and `headers[content-type]` are provided as parameters. - When a request isn't matched the passthru prefixes are now included in error messages. ### [`v0.18.0`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0180) [Compare Source](https://togithub.com/getsentry/responses/compare/0.17.0...0.18.0) - Dropped support of Python 2.7, 3.5, 3.6 - Fixed issue with type annotation for `responses.activate` decorator. See [#468](https://togithub.com/getsentry/responses/issues/468) - Removed internal `_is_string` and `_ensure_str` functions - Removed internal `_quote` from `test_responses.py` - Removed internal `_matches` attribute of `RequestsMock` object. - Generated decorator wrapper now uses stdlib features instead of strings and exec - Fix issue when Deprecation Warning was raised with default arguments in `responses.add_callback` due to `match_querystring`. See [#464](https://togithub.com/getsentry/responses/issues/464)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.