Skip to content

Commit bac1751

Browse files
fix: update health test to mock httpx.Client.request
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 13902a9 commit bac1751

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def test_credits(self):
442442

443443
def test_health(self):
444444
body = {"status": "ok", "uptime": 12345}
445-
with patch.object(httpx, "request", return_value=mock_response(body)):
445+
with patch.object(httpx.Client, "request", return_value=mock_response(body)):
446446
sgai = ScrapeGraphAI(api_key=API_KEY)
447447
res = sgai.health()
448448

0 commit comments

Comments
 (0)