Skip to content

Commit 32c31e8

Browse files
committed
Fixes unit tests
1 parent b1b4b6d commit 32c31e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unitary/with_extras/aqua/test_model_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from unittest import TestCase
77
from unittest.mock import MagicMock, patch
88

9+
from aqua.model.constants import ModelTask
910
import pytest
1011
from huggingface_hub.hf_api import HfApi, ModelInfo
1112
from huggingface_hub.utils import GatedRepoError
@@ -276,7 +277,8 @@ def test_post_negative(self, mock_uuid, mock_format_hf_custom_error_message):
276277
'{"status": 400, "message": "Something went wrong with your request.", '
277278
'"service_payload": {}, "reason": "Unsupported pipeline tag for the chosen '
278279
"model: 'not-text-generation'. AQUA currently supports the following tasks only: "
279-
'text-generation. Please select a model with a compatible pipeline tag.", "request_id": "###"}'
280+
f'{", ".join(ModelTask.values())}. '
281+
'Please select a model with a compatible pipeline tag.", "request_id": "###"}'
280282
)
281283
get_hf_model_info.cache_clear()
282284

0 commit comments

Comments
 (0)