IAL32 commented on code in PR #28149:
URL: https://github.com/apache/airflow/pull/28149#discussion_r1040873557


##########
tests/providers/amazon/aws/operators/test_sagemaker_transform.py:
##########
@@ -43,6 +43,16 @@
     "TransformOutput": {"S3OutputPath": "output_path"},
     "TransformResources": {"InstanceType": "ml.m4.xlarge", "InstanceCount": 
"3"},
 }
+CREATE_TRANSFORM_PARAMS_INTEGER_FIELDS: dict = {
+    "TransformJobName": "job_name",
+    "ModelName": "model_name",
+    "MaxConcurrentTransforms": 12,
+    "MaxPayloadInMB": 6,
+    "BatchStrategy": "MultiRecord",
+    "TransformInput": {"DataSource": {"S3DataSource": {"S3DataType": 
"S3Prefix", "S3Uri": "s3_uri"}}},
+    "TransformOutput": {"S3OutputPath": "output_path"},
+    "TransformResources": {"InstanceType": "ml.m4.xlarge", "InstanceCount": 3},
+}

Review Comment:
   Note: previous implementation relied on the fact that executing the operator 
actively modified the `CREATE_TRANSFORM_PARAMS` constant, which is bad 
practice. Here I provide a second dictionary with the expected integer values 
and modified tests accordingly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to