mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 14:51:19 +00:00
build: replace httpx with httpx2 in website scripts
httpx has had no release since December 2024. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
eb98d2087d
commit
038f184473
6 changed files with 46 additions and 36 deletions
|
|
@ -254,7 +254,7 @@ class TestMainSkipsFreshCache:
|
|||
mock_client.__enter__ = MagicMock(return_value=mock_client)
|
||||
mock_client.__exit__ = MagicMock(return_value=False)
|
||||
mock_client.post.return_value = mock_response
|
||||
monkeypatch.setattr("fetch_github_stars.httpx.Client", lambda **kwargs: mock_client)
|
||||
monkeypatch.setattr("fetch_github_stars.httpx2.Client", lambda **kwargs: mock_client)
|
||||
|
||||
main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue