chore(deps): update dependency pytest-httpx to v0.36.0#378
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency pytest-httpx to v0.36.0#378renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
fc64cda to
ff11f39
Compare
0c6fd8a to
2dfcb15
Compare
2dfcb15 to
698c51d
Compare
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.31.2→0.36.0Release Notes
Colin-b/pytest_httpx (pytest-httpx)
v0.36.0Compare Source
Changed
pytestrequired version is now9.Added
3.14.match_paramsparameter is now available on responses and callbacks registration, as well as request(s) retrieval. Allowing to provide query parameters as a dict instead of being part of the matched URL.Fixed
httpx_mock.add_exceptionis now properly documented (acceptsBaseExceptioninstead ofException).Removed
pytest8is not supported anymore.3.9is not supported anymore.v0.35.0Compare Source
Changed
httpx==0.28.*v0.34.0Compare Source
Added
is_optionalparameter is now available on responses and callbacks registration. Allowing to add optional responses while keeping other responses as mandatory. Refer to documentation for more details.is_reusableparameter is now available on responses and callbacks registration. Allowing to add multi-match responses while keeping other responses as single-match. Refer to documentation for more details.Fixed
httpx_mock.get_requestwill now also propose to refine filters if more than one request is found instead of only proposing to switch tohttpx_mock.get_requests.v0.33.0Compare Source
Added
3.13.should_mockoption (callable returning a boolean) is now available, defaulting to always returningTrue. Refer to documentation for more details.match_filesandmatch_dataparameters. Refer to documentation for more details.match_extensionsparameter. Refer to documentation for more details.Removed
non_mocked_hostsoption is not available anymore. Useshould_mockinstead as in the following sample:www.depending on your usage.v0.32.0Compare Source
Added
can_send_already_matched_responses(boolean), defaulting toFalse.httpx.TimeoutExceptionmessage issued in case of unmatched request is now linking documentation on how to reuse responses (in case some responses are already matched).Fixed
-to highlight the fact that this is a list, preventing misapprehension in case only one element exists.-to highlight the fact that this is a list, preventing misapprehension in case only one element exists.httpx.TimeoutExceptionmessage 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.TimeoutExceptionmessage issued in case of unmatched request is now listing unmatched responses (in registration order) before already matched one (still in registration order).httpx.TimeoutExceptionmessage 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
pytest.mark.httpx_mock(can_send_already_matched_responses=True)option.HTTPXMockclass was only exposed for type hinting purpose. This is now explained in the class docstring.__init__signature will be documented and considered a breaking change.__init__now expects one parameter, the newly introduced (since [0.31.0]) options.HTTPXMockOptionsclass was never intended to be exposed and is now marked as private.Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) in timezone America/Chicago, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.