We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e57794c commit 6fc6865Copy full SHA for 6fc6865
tests/integrations/huggingface_hub/test_huggingface_hub.py
@@ -1,4 +1,5 @@
1
import itertools
2
+from unittest import mock
3
4
import pytest
5
from huggingface_hub import (
@@ -9,8 +10,6 @@
9
10
from sentry_sdk import start_transaction
11
from sentry_sdk.integrations.huggingface_hub import HuggingfaceHubIntegration
12
-from unittest import mock # python 3.3 and above
13
-
14
15
def mock_client_post(client, post_mock):
16
# huggingface-hub==0.28.0 deprecates the `post` method
@@ -116,7 +115,6 @@ def test_streaming_chat_completion(
116
115
)
117
118
assert len(response) == 2
119
- print(response)
120
if details_arg:
121
assert response[0].token.text + response[1].token.text == "the model response"
122
else:
0 commit comments