@@ -2595,7 +2595,7 @@ def test_create_edge_packaging_with_sagemaker_config_injection(sagemaker_session
2595
2595
"OutputConfig"
2596
2596
]["KmsKeyId" ]
2597
2597
expected_tags = SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["Tags" ]
2598
- expected_resource_key = SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["ResourceKey" ]
2598
+ expected_resource_key = ( SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB ["SageMaker" ]["EdgePackagingJob" ]["ResourceKey" ],)
2599
2599
sagemaker_session .sagemaker_client .create_edge_packaging_job .assert_called_with (
2600
2600
RoleArn = expected_role_arn , # provided from config
2601
2601
OutputConfig = {
@@ -3105,7 +3105,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection(
3105
3105
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3106
3106
EndpointConfigName = "some-endpoint" ,
3107
3107
EndpointName = "some-endpoint" ,
3108
- Tags = expected_tags , # from config
3108
+ Tags = [],
3109
3109
)
3110
3110
3111
3111
@@ -3173,7 +3173,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_parti
3173
3173
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3174
3174
EndpointConfigName = "some-endpoint" ,
3175
3175
EndpointName = "some-endpoint" ,
3176
- Tags = expected_tags , # from config
3176
+ Tags = [],
3177
3177
)
3178
3178
3179
3179
@@ -3234,7 +3234,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_no_km
3234
3234
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3235
3235
EndpointConfigName = "some-endpoint" ,
3236
3236
EndpointName = "some-endpoint" ,
3237
- Tags = expected_tags , # from config
3237
+ Tags = [],
3238
3238
)
3239
3239
3240
3240
@@ -3315,7 +3315,7 @@ def test_endpoint_from_production_variants_with_sagemaker_config_injection_tags(
3315
3315
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3316
3316
)
3317
3317
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3318
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3318
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3319
3319
)
3320
3320
3321
3321
@@ -3366,11 +3366,12 @@ def test_endpoint_from_production_variants_with_accelerator_type_sagemaker_confi
3366
3366
)
3367
3367
ims .sagemaker_client .describe_endpoint_config = Mock (side_effect = ex )
3368
3368
expected_tags = SAGEMAKER_CONFIG_ENDPOINT ["SageMaker" ]["Endpoint" ]["Tags" ]
3369
+ sagemaker_session .endpoint_from_production_variants ("some-endpoint" , pvs )
3369
3370
sagemaker_session .sagemaker_client .create_endpoint .assert_called_with (
3370
3371
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3371
3372
)
3372
3373
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3373
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3374
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3374
3375
)
3375
3376
3376
3377
@@ -3442,7 +3443,7 @@ def test_endpoint_from_production_variants_with_serverless_inference_config_sage
3442
3443
EndpointConfigName = "some-endpoint" , EndpointName = "some-endpoint" , Tags = expected_tags
3443
3444
)
3444
3445
sagemaker_session .sagemaker_client .create_endpoint_config .assert_called_with (
3445
- EndpointConfigName = "some-endpoint" , ProductionVariants = pvs , Tags = []
3446
+ EndpointConfigName = "some-endpoint" , ProductionVariants = pvs
3446
3447
)
3447
3448
3448
3449
0 commit comments