Skip to content

Commit c18c15f

Browse files
committed
simplify diff
1 parent 837dade commit c18c15f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integrations/huggingface_hub/test_huggingface_hub.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def mock_hf_text_generation_api(httpx_mock):
7272
_add_mock_response(
7373
httpx_mock,
7474
rsps,
75-
method="GET",
76-
url=re.compile(
75+
"GET",
76+
re.compile(
7777
MODEL_ENDPOINT.format(model_name=model_name)
7878
+ r"(\?expand=inferenceProviderMapping)?"
7979
),
@@ -94,8 +94,8 @@ def mock_hf_text_generation_api(httpx_mock):
9494
_add_mock_response(
9595
httpx_mock,
9696
rsps,
97-
method="POST",
98-
url=INFERENCE_ENDPOINT.format(model_name=model_name),
97+
"POST",
98+
INFERENCE_ENDPOINT.format(model_name=model_name),
9999
json={
100100
"generated_text": "[mocked] Hello! How can i help you?",
101101
"details": {

0 commit comments

Comments
 (0)