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 @@ -284,9 +284,7 @@ def __init__(
284
284
self .kwargs = kwargs
285
285
self .container_def_list = container_def_list
286
286
287
- self ._properties = Properties (
288
- path = f"Steps.{ name } " , shape_name = "DescribeModelPackageResponse"
289
- )
287
+ self ._properties = Properties (path = f"Steps.{ name } " , shape_name = "DescribeModelPackageOutput" )
290
288
291
289
@property
292
290
def arguments (self ) -> RequestType :
@@ -362,5 +360,5 @@ def arguments(self) -> RequestType:
362
360
363
361
@property
364
362
def properties (self ):
365
- """A Properties object representing the DescribeTrainingJobResponse data model."""
363
+ """A Properties object representing the DescribeModelPackageOutput data model."""
366
364
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