File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/unit/sagemaker/jumpstart/hub Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1717from sagemaker .jumpstart .hub .interfaces import HubModelDocument
1818from tests .unit .sagemaker .jumpstart .constants import HUB_MODEL_DOCUMENT_DICTS
1919from unittest .mock import MagicMock
20+ from sagemaker .jumpstart .types import HubContentType
21+
2022
2123REGION = "us-east-1"
2224ACCOUNT_ID = "123456789123"
@@ -41,6 +43,7 @@ def test_parse_(input_string, expected):
4143def test_make_model_specs_from_describe_hub_content_response ():
4244 mock_describe_response = MagicMock ()
4345 region = "us-west-2"
46+ mock_describe_response .hub_content_type = HubContentType .MODEL
4447 mock_describe_response .get_hub_region .return_value = region
4548 mock_describe_response .hub_content_version = "1.0.0"
4649 json_obj = HUB_MODEL_DOCUMENT_DICTS ["huggingface-llm-gemma-2b-instruct" ]
You can’t perform that action at this time.
0 commit comments