File tree 2 files changed +13
-4
lines changed
tests/unit/sagemaker/workflow
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -288,9 +288,7 @@ def __init__(
288
288
self .kwargs = kwargs
289
289
self .container_def_list = container_def_list
290
290
291
- self ._properties = Properties (
292
- path = f"Steps.{ name } " , shape_name = "DescribeModelPackageResponse"
293
- )
291
+ self ._properties = Properties (path = f"Steps.{ name } " , shape_name = "DescribeModelPackageOutput" )
294
292
295
293
@property
296
294
def arguments (self ) -> RequestType :
@@ -366,5 +364,5 @@ def arguments(self) -> RequestType:
366
364
367
365
@property
368
366
def properties (self ):
369
- """A Properties object representing the DescribeTrainingJobResponse data model."""
367
+ """A Properties object representing the DescribeModelPackageOutput data model."""
370
368
return self ._properties
Original file line number Diff line number Diff line change @@ -67,3 +67,14 @@ def test_properties_tuning_job():
67
67
assert prop .TrainingJobSummaries [0 ].TrainingJobName .expr == {
68
68
"Get" : "Steps.MyStep.TrainingJobSummaries[0].TrainingJobName"
69
69
}
70
+
71
+
72
+ def test_properties_describe_model_package_output ():
73
+ prop = Properties ("Steps.MyStep" , "DescribeModelPackageOutput" )
74
+ some_prop_names = ["ModelPackageName" , "ModelPackageGroupName" , "ModelPackageArn" ]
75
+ for name in some_prop_names :
76
+ assert name in prop .__dict__ .keys ()
77
+ assert prop .ModelPackageName .expr == {"Get" : "Steps.MyStep.ModelPackageName" }
78
+ assert prop .ValidationSpecification .ValidationRole .expr == {
79
+ "Get" : "Steps.MyStep.ValidationSpecification.ValidationRole"
80
+ }
You can’t perform that action at this time.
0 commit comments