Skip to content

Commit 4a4ed71

Browse files
Pass response to HTTPError in mock raise_for_status
1 parent 54008bd commit 4a4ed71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/oci/tests/unit_tests/chat_models/test_oci_data_science.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, json_data: Dict, status_code: int = 200):
8080
def raise_for_status(self) -> None:
8181
"""Mocked raise for status."""
8282
if 400 <= self.status_code < 600:
83-
raise HTTPError() # type: ignore[call-arg]
83+
raise HTTPError(response=self) # type: ignore[arg-type]
8484

8585
def json(self) -> Dict:
8686
"""Returns mocked json data."""

0 commit comments

Comments
 (0)