2023-11-16 10:40:00 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.27.0
0.27.0
Added
- Explicit support for python `3.12`.
Fixed
- Custom HTTP transport are now handled (parent call to `handle_async_request` \
or `handle_request`).
Changed
- Only HTTP transport are now mocked, this should not have any impact, however \
if it does, please feel free to open an issue describing your use case.
|
2023-09-27 17:14:30 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-test-httpx: updated to 0.26.0
0.26.0
Added
- Added `proxy_url` parameter which allows matching on proxy URL.
|
2023-09-14 11:28:21 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.25.0
0.25.0
Changed
- Requires [`httpx`](https://www.python-httpx.org)==0.25.\*
Removed
- `pytest` `6` is no longer supported.
|
2023-09-06 22:05:12 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.24.0
0.24.0
Added
- Added `match_json` parameter which allows matching on JSON decoded body \
(matching against python representation instead of bytes).
Changed
- Even if it was never documented as a feature, the `match_headers` parameter \
was not considering header names case when matching.
- As this might have been considered a feature by some users, the fact that \
`match_headers` will now respect casing is documented as a breaking change.
Fixed
- Matching on headers does not ignore name case anymore, the name must now be \
cased as sent (as some servers might expect a specific case).
- Error message in case a request does not match will now include request \
headers with mismatching name case as well.
- Error message in case a request does not match will now include request \
headers when not provided as lower-cased to `match_headers`.
- Add `:Any` type hint to `**matchers` function arguments to satisfy strict type \
checking mode in [`pyright`](https://microsoft.github.io/pyright/#/).
|
2023-08-04 07:10:22 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.23.1
0.23.1
Fixed
- Version `0.23.0` introduced a regression removing the support for mutating \
json content provided in `httpx_mock.add_response`.
- This is fixed, you can now expect the JSON return being as it was when \
provided to `httpx_mock.add_response`:
```python
mutating_json = {"content": "request 1"}
# This will return {"content": "request 1"}
httpx_mock.add_response(json=mutating_json)
mutating_json["content"] = "request 2"
# This will return {"content": "request 2"}
httpx_mock.add_response(json=mutating_json)
```
0.23.0
Removed
- Python `3.7` and `3.8` are no longer supported.
Fixed
- `httpx_mock.add_response` is now returning a new `httpx.Response` instance \
upon each matching request. Preventing unnecessary recursion in streams.
|
2023-04-17 11:59:50 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.22.0
0.22.0
Requires httpx==0.24.*
|
2023-01-20 13:37:03 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-httpx: updated to 0.21.3
0.21.3
Fixed
Update version specifiers for pytest dependency to support packaging 23.
Add explicit support for python 3.11.
|
2022-11-15 13:17:08 by Adam Ciarcinski | Files touched by this commit (4) |
Log message:
py-test-httpx: added version 0.21.2
Send responses to HTTPX using pytest.
|