Skip to content

Commit bd02739

Browse files
committed
fix: tests
1 parent bddf5e3 commit bd02739

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/sagemaker/jumpstart/curated_hub/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def _convert_to_tag_to_versions_map(
238238
for version, tags in version_to_tags_map.items():
239239
for tag in tags:
240240
if tag not in unsupported_hub_content_versions_map:
241-
unsupported_hub_content_versions_map[tag] = []
241+
unsupported_hub_content_versions_map[tag.value] = []
242242
# Versions for a HubContent are unique
243-
unsupported_hub_content_versions_map[tag].append(version)
243+
unsupported_hub_content_versions_map[tag.value].append(version)
244244

245245
return unsupported_hub_content_versions_map
246246

tests/unit/sagemaker/jumpstart/curated_hub/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ def test_find_all_tags_for_jumpstart_model_filters_non_jumpstart_models(mock_spe
325325

326326
assert tags == [
327327
{
328-
"Key": CuratedHubUnsupportedFlag.DEPRECATED_VERSIONS.value,
328+
"Key": "deprecated_versions",
329329
"Value": str(["1.0.0", "2.0.0"]),
330330
},
331331
{
332-
"Key": CuratedHubUnsupportedFlag.INFERENCE_VULNERABLE_VERSIONS.value,
332+
"Key": "inference_vulnerable_versions",
333333
"Value": str(["1.0.0", "2.0.0"]),
334334
},
335335
{
336-
"Key": CuratedHubUnsupportedFlag.TRAINING_VULNERABLE_VERSIONS.value,
336+
"Key": "training_vulnerable_versions",
337337
"Value": str(["1.0.0", "2.0.0"]),
338338
},
339339
]

0 commit comments

Comments
 (0)