SameerMesiah97 commented on code in PR #72453:
URL: https://github.com/apache/airflow/pull/72453#discussion_r3917907037
##########
providers/amazon/tests/unit/amazon/aws/operators/test_sagemaker_unified_studio_notebook.py:
##########
@@ -272,18 +279,30 @@ def test_execute_deferrable(self, mock_hook_prop):
deferrable=True,
waiter_delay=20,
timeout_configuration={"runTimeoutInMinutes": 120},
+ region_name="us-west-2",
+ verify="/tmp/custom-ca.pem",
+ botocore_config=botocore_config,
)
with pytest.raises(TaskDeferred) as exc_info:
op.execute(_make_context())
trigger = exc_info.value.trigger
+
assert isinstance(trigger, SageMakerUnifiedStudioNotebookTrigger)
assert trigger.notebook_run_id == NOTEBOOK_RUN_ID
assert trigger.domain_identifier == DOMAIN_ID
assert trigger.owning_project_identifier == PROJECT_ID
assert trigger.waiter_delay == 20
assert trigger.timeout_configuration == {"runTimeoutInMinutes": 120}
+
+ serialized_payload = trigger.serialize()[1]
Review Comment:
nit: _, kwargs = trigger.serialize() would be cleaner but it is fine as is.
--
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]