Skip to content

Commit 5b3a956

Browse files
author
shaernev
committed
chore: fixing model deploy tests to incorporate new params
1 parent 3764325 commit 5b3a956

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/unit/sagemaker/jumpstart/model/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def test_jumpstart_model_kwargs_match_parent_class(self):
771771
and reach out to JumpStart team."""
772772

773773
init_args_to_skip: Set[str] = set(["model_reference_arn"])
774-
deploy_args_to_skip: Set[str] = set(["kwargs"])
774+
deploy_args_to_skip: Set[str] = set(["kwargs", "model_reference_arn"])
775775

776776
parent_class_init = Model.__init__
777777
parent_class_init_args = set(signature(parent_class_init).parameters.keys())

tests/unit/sagemaker/model/test_deploy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def test_deploy_accelerator_type(
179179
accelerator_type=ACCELERATOR_TYPE,
180180
tags=None,
181181
serverless_inference_config=None,
182+
accept_eula=None,
183+
model_reference_arn=None,
182184
)
183185
production_variant.assert_called_with(
184186
MODEL_NAME,
@@ -299,6 +301,8 @@ def test_deploy_tags(create_sagemaker_model, production_variant, name_from_base,
299301
accelerator_type=None,
300302
tags=tags,
301303
serverless_inference_config=None,
304+
accept_eula=None,
305+
model_reference_arn=None,
302306
)
303307
sagemaker_session.endpoint_from_production_variants.assert_called_with(
304308
name=ENDPOINT_NAME,
@@ -502,6 +506,8 @@ def test_deploy_serverless_inference(production_variant, create_sagemaker_model,
502506
accelerator_type=None,
503507
tags=None,
504508
serverless_inference_config=serverless_inference_config,
509+
accept_eula=None,
510+
model_reference_arn=None,
505511
)
506512
production_variant.assert_called_with(
507513
MODEL_NAME,

0 commit comments

Comments
 (0)