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:
Vinta Chen 2026-10-31 22:21:52 +08:00
parent eb98d2087d
commit 038f184473
6 changed files with 46 additions and 36 deletions

View file

@ -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()