Skip to content

Commit 085aaaf

Browse files
committed
fix test
1 parent 368131a commit 085aaaf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,17 @@ def test_construct_hub_model_arn_from_inputs():
9999
def test_construct_hub_model_reference_arn_from_inputs():
100100
model_name, version = "pytorch-ic-imagenet-v2", "1.0.2"
101101
hub_arn = "arn:aws:sagemaker:us-west-2:123456789123:hub/my-mock-hub"
102-
102+
hub_content_arn_prefix = "arn:aws:sagemaker:us-west-2:123456789123:hub-content/my-mock-hub
103+
103104
assert (
104105
utils.construct_hub_model_reference_arn_from_inputs(hub_arn, model_name, version)
105-
== "arn:aws:sagemaker:us-west-2:123456789123:hub-content/my-mock-hub/ModelReference/pytorch-ic-imagenet-v2/1.0.2"
106+
== hub_content_arn_prefix + "/ModelReference/pytorch-ic-imagenet-v2/1.0.2"
106107
)
107108

108109
version = "*"
109110
assert (
110111
utils.construct_hub_model_reference_arn_from_inputs(hub_arn, model_name, version)
111-
== "arn:aws:sagemaker:us-west-2:123456789123:hub-content/my-mock-hub/ModelReference/pytorch-ic-imagenet-v2/*"
112+
== hub_content_arn_prefix + "/ModelReference/pytorch-ic-imagenet-v2/*"
112113
)
113114

114115

0 commit comments

Comments
 (0)