You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
7
## [Unreleased]
8
+
9
+
## [0.36.0] - 2025-12-02
10
+
### Changed
11
+
-`pytest` required version is now `9`.
12
+
8
13
### Added
14
+
- Explicit support for python `3.14`.
9
15
-`match_params` parameter 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.
10
16
- This parameter allows to perform partial query params matching ([refer to documentation](README.md#matching-on-query-parameters) for more information).
11
17
12
18
### Fixed
13
19
- URL with more than one value for the same parameter were not matched properly (matching was performed on the first value).
14
20
-`httpx_mock.add_exception` is now properly documented (accepts `BaseException` instead of `Exception`).
Copy file name to clipboardExpand all lines: pytest_httpx/_request_matcher.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,7 @@ def __init__(
90
90
"Otherwise, use match_content."
91
91
)
92
92
ifself.paramsandnotself.url:
93
-
raiseValueError(
94
-
"URL must be provided when match_params is used."
95
-
)
93
+
raiseValueError("URL must be provided when match_params is used.")
96
94
ifself.paramsandisinstance(self.url, re.Pattern):
97
95
raiseValueError(
98
96
"match_params cannot be used in addition to regex URL. Request this feature via https://github.com/Colin-b/pytest_httpx/issues/new?title=Regex%20URL%20should%20allow%20match_params&body=Hi,%20I%20need%20a%20regex%20to%20match%20the%20non%20query%20part%20of%20the%20URL%20only"
assertstr(exception_info.value) =="match_params cannot be used in addition to regex URL. Request this feature via https://github.com/Colin-b/pytest_httpx/issues/new?title=Regex%20URL%20should%20allow%20match_params&body=Hi,%20I%20need%20a%20regex%20to%20match%20the%20non%20query%20part%20of%20the%20URL%20only"
178
+
assert (
179
+
str(exception_info.value)
180
+
=="match_params cannot be used in addition to regex URL. Request this feature via https://github.com/Colin-b/pytest_httpx/issues/new?title=Regex%20URL%20should%20allow%20match_params&body=Hi,%20I%20need%20a%20regex%20to%20match%20the%20non%20query%20part%20of%20the%20URL%20only"
0 commit comments