./www/py-test-httpx, Send responses to httpx

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.30.0, Package name: py311-test-httpx-0.30.0, Maintainer: pkgsrc-users

Send responses to HTTPX using pytest.


Master sites:

Filesize: 36.093 KB

Version history: (Expand)


CVS history: (Expand)


   2024-02-21 20:21:53 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-httpx: updated to 0.30.0

0.30.0

Changed
- Requires [`httpx`](https://www.python-httpx.org)==0.27.\*

Fixed
- Switch from `setup.py` to `pyproject.toml`
   2024-01-30 21:47:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-httpx: updated to 0.29.0

0.29.0
- Add support for [`pytest`](https://docs.pytest.org)==8.\* \ 
([`pytest`](https://docs.pytest.org)==7.\* is still supported for now).
   2024-01-01 12:47:35 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-httpx: updated to 0.28.0

0.28.0
Changed
- Requires [`httpx`](https://www.python-httpx.org)==0.26.\*
   2023-11-16 10:40:00 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
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.