@@ -2552,7 +2552,7 @@ def test_create_edge_packaging_with_sagemaker_config_injection(sagemaker_session
2552
2552
"OutputConfig"
2553
2553
]["KmsKeyId" ]
2554
2554
expected_tags = SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["Tags" ]
2555
- expected_resource_key = SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["ResourceKey" ]
2555
+ expected_resource_key = ( SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["ResourceKey" ],)
2556
2556
sagemaker_session .sagemaker_client .create_edge_packaging_job .assert_called_with (
2557
2557
RoleArn = expected_role_arn , # provided from config
2558
2558
OutputConfig = {
@@ -3058,7 +3058,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection(
3058
3058
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3059
3059
EndpointConfigName = "some-endpoint" ,
3060
3060
EndpointName = "some-endpoint" ,
3061
- Tags = expected_tags , # from config
3061
+ Tags = [],
3062
3062
)
3063
3063
3064
3064
@@ -3126,7 +3126,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_parti
3126
3126
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3127
3127
EndpointConfigName = "some-endpoint" ,
3128
3128
EndpointName = "some-endpoint" ,
3129
- Tags = expected_tags , # from config
3129
+ Tags = [],
3130
3130
)
3131
3131
3132
3132
@@ -3187,7 +3187,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_no_km
3187
3187
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3188
3188
EndpointConfigName = "some-endpoint" ,
3189
3189
EndpointName = "some-endpoint" ,
3190
- Tags = expected_tags , # from config
3190
+ Tags = [],
3191
3191
)
3192
3192
3193
3193
@@ -3268,7 +3268,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_tags(
3268
3268
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3269
3269
)
3270
3270
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3271
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3271
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3272
3272
)
3273
3273
3274
3274
@@ -3319,11 +3319,12 @@ def test_endpoint_from_production_variants_with_accelerator_type_sagemaker_confi
3319
3319
)
3320
3320
ims .sagemaker_client .describe_endpoint_config = Mock (side_effect = ex )
3321
3321
expected_tags = SAGEMAKER_CONFIG_ENDPOINT ["SageMaker" ]["Endpoint" ]["Tags" ]
3322
+ sagemaker_session .endpoint_from_production_variants ("some-endpoint" , pvs )
3322
3323
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3323
3324
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3324
3325
)
3325
3326
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3326
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3327
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3327
3328
)
3328
3329
3329
3330
@@ -3395,7 +3396,7 @@ def test_endpoint_from_production_variants_with_serverless_inference_config_sage
3395
3396
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3396
3397
)
3397
3398
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3398
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3399
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3399
3400
)
3400
3401
3401
3402
0 commit comments