Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanbo Liu committed Dec 6, 2023
1 parent 2b8cf1b commit e7b3123
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlserver/types/dataplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Config:

content_type: Optional[str] = None
headers: Optional[Dict[str, Any]] = None
extra: Optional[dict] = {}
extra: Optional[dict] = None


class TensorData(BaseModel):
Expand Down
4 changes: 3 additions & 1 deletion runtimes/huggingface/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from symbol import comparison
from unittest.mock import MagicMock, patch
import json
import pytest
Expand Down Expand Up @@ -269,4 +270,5 @@ async def test_pipeline_uses_inference_kwargs(

result2 = await runtime.predict(payload2)
result2 = json.loads(result2.outputs[0].data[0])["generated_text"]
assert (len(result1) > len(result2)) == expected
comparison = len(result1) > len(result2)
assert comparison == expected

0 comments on commit e7b3123

Please sign in to comment.