Subject: CVS commit: pkgsrc/www/py-test-httpx
From: Adam Ciarcinski
Date: 2024-09-23 10:12:12
Message id: 20240923081212.BA62FFC74@cvs.NetBSD.org

Log Message:
py-test-httpx: updated to 0.31.1

0.31.1
Fixed
- It is now possible to match on content provided as async iterable by the client.

0.31.0
Changed
- Tests will now fail at teardown by default if some requests were issued but \ 
were not matched.
 - This behavior can be changed thanks to the new \ 
``pytest.mark.httpx_mock(assert_all_requests_were_expected=False)`` option.
- The `httpx_mock` fixture is now configured using a marker (many thanks to \ 
[`Frazer McLean`](https://github.com/RazerM)).
 ```python
 # Apply marker to whole module
 pytestmark = pytest.mark.httpx_mock(assert_all_responses_were_requested=False)

 # Or to specific tests
 @pytest.mark.httpx_mock(non_mocked_hosts=[...])
 def test_foo(httpx_mock):
     ...
 ```
 - The following options are available:
   - `assert_all_responses_were_requested` (boolean), defaulting to `True`.
   - `assert_all_requests_were_expected` (boolean), defaulting to `True`.
   - `non_mocked_hosts` (iterable), defaulting to an empty list, meaning all \ 
hosts are mocked.
- `httpx_mock.reset` do not expect any parameter anymore and will only reset the \ 
mock state (no assertions will be performed).

Removed
- `pytest` `7` is not supported anymore (`pytest` `8` has been out for 9 months \ 
already).
- `assert_all_responses_were_requested` fixture is not available anymore, use \ 
`pytest.mark.httpx_mock(assert_all_responses_were_requested=False)` instead.
- `non_mocked_hosts` fixture is not available anymore, use \ 
`pytest.mark.httpx_mock(non_mocked_hosts=[])` instead.

Files:
RevisionActionfile
1.12modifypkgsrc/www/py-test-httpx/Makefile
1.12modifypkgsrc/www/py-test-httpx/distinfo