Update dependency pytest-httpx to v0.35.0 #307
Closed
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.35.0
Release Notes
Colin-b/pytest_httpx (pytest-httpx)
v0.35.0
Compare Source
Changed
httpx
==0.28.*v0.34.0
Compare Source
Added
is_optional
parameter 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_reusable
parameter 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_request
will 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.0
Compare Source
Added
3.13
.should_mock
option (callable returning a boolean) is now available, defaulting to always returningTrue
. Refer to documentation for more details.match_files
andmatch_data
parameters. Refer to documentation for more details.match_extensions
parameter. Refer to documentation for more details.Removed
non_mocked_hosts
option is not available anymore. Useshould_mock
instead as in the following sample:www.
depending on your usage.v0.32.0
Compare Source
Added
can_send_already_matched_responses
(boolean), defaulting toFalse
.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
-
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.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).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
pytest.mark.httpx_mock(can_send_already_matched_responses=True)
option.HTTPXMock
class 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.HTTPXMockOptions
class was never intended to be exposed and is now marked as private.Configuration
📅 Schedule: Branch creation - "* 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.