File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/unit/sagemaker/jumpstart/hub Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -99,16 +99,17 @@ def test_construct_hub_model_arn_from_inputs():
99
99
def test_construct_hub_model_reference_arn_from_inputs ():
100
100
model_name , version = "pytorch-ic-imagenet-v2" , "1.0.2"
101
101
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
+
103
104
assert (
104
105
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"
106
107
)
107
108
108
109
version = "*"
109
110
assert (
110
111
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/*"
112
113
)
113
114
114
115
You can’t perform that action at this time.
0 commit comments