Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency pytest-httpx to ^0.32.0 (#284)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pytest-httpx](https://redirect.github.com/Colin-b/pytest_httpx) ([changelog](https://redirect.github.com/Colin-b/pytest_httpx/blob/master/CHANGELOG.md)) | `^0.30.0` -> `^0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-httpx/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pytest-httpx/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pytest-httpx/0.30.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-httpx/0.30.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Colin-b/pytest_httpx (pytest-httpx)</summary> ### [`v0.32.0`](https://redirect.github.com/Colin-b/pytest_httpx/blob/HEAD/CHANGELOG.md#0320---2024-09-27) [Compare Source](https://redirect.github.com/Colin-b/pytest_httpx/compare/v0.31.2...v0.32.0) ##### Added - The following option is now available: - `can_send_already_matched_responses` (boolean), defaulting to `False`. - Assertion failure message in case of unmatched responses is now linking documentation on how to deactivate the check. - Assertion failure message in case of unmatched requests is now linking documentation on how to deactivate the check. - `httpx.TimeoutException` message issued in case of unmatched request is now linking documentation on how to reuse responses (in case some responses are already matched). ##### Fixed - Documentation now clearly state the risks associated with changing the default options. - Assertion failure message in case of unmatched requests at teardown is now describing requests in a more user-friendly way. - Assertion failure message in case of unmatched requests at teardown is now prefixing requests with ` - ` to highlight the fact that this is a list, preventing misapprehension in case only one element exists. - Assertion failure message in case of unmatched responses at teardown is now prefixing responses with ` - ` to highlight the fact that this is a list, preventing misapprehension in case only one element exists. - `httpx.TimeoutException` message issued in case of unmatched request is now prefixing available responses with ` - ` to highlight the fact that this is a list, preventing misapprehension in case only one element exists. - `httpx.TimeoutException` message issued in case of unmatched request is now listing unmatched responses (in registration order) before already matched one (still in registration order). - The incentive behind this change is to help identify a potential mismatch faster as the first unmatched response is the most likely to be the one expected to match. - Response description in failure messages (`httpx.TimeoutException` message issued in case of unmatched request or assertion failure message in case of unmatched responses at teardown) is now displaying if the response was already matched or not and less misleading in it's phrasing about what it can match (a single request by default). ##### Changed - Last registered matching response will not be reused by default anymore in case all matching responses have already been sent. - This behavior can be changed thanks to the new `pytest.mark.httpx_mock(can_send_already_matched_responses=True)` option. - The incentive behind this change is to spot regression if a request was issued more than the expected number of times. - `HTTPXMock` class was only exposed for type hinting purpose. This is now explained in the class docstring. - As a result this is the last time a change to `__init__` signature will be documented and considered a breaking change. - Future changes will not be documented and will be considered as internal refactoring not worth a version bump. - `__init__` now expects one parameter, the newly introduced (since \[0.31.0]) options. - `HTTPXMockOptions` class was never intended to be exposed and is now marked as private. ### [`v0.31.2`](https://redirect.github.com/Colin-b/pytest_httpx/blob/HEAD/CHANGELOG.md#0312---2024-09-23) [Compare Source](https://redirect.github.com/Colin-b/pytest_httpx/compare/v0.31.1...v0.31.2) ##### Fixed - `httpx_mock` marker can now be defined at different levels for a single test. ### [`v0.31.1`](https://redirect.github.com/Colin-b/pytest_httpx/blob/HEAD/CHANGELOG.md#0311---2024-09-22) [Compare Source](https://redirect.github.com/Colin-b/pytest_httpx/compare/v0.31.0...v0.31.1) ##### Fixed - It is now possible to match on content provided as async iterable by the client. ### [`v0.31.0`](https://redirect.github.com/Colin-b/pytest_httpx/blob/HEAD/CHANGELOG.md#0310---2024-09-20) [Compare Source](https://redirect.github.com/Colin-b/pytest_httpx/compare/v0.30.0...v0.31.0) ##### Changed - Tests will now fail at teardown by default if some requests were issued but were not matched. - This behavior can be changed thanks to the new `pytest.mark.httpx_mock(assert_all_requests_were_expected=False)` option. - The incentive behind this change is to spot unexpected requests in case code is swallowing `httpx.TimeoutException`. - The `httpx_mock` fixture is now configured using a marker (many thanks to [`Frazer McLean`](https://redirect.github.com/RazerM)). ```python ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/jooola/earhorn). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information