@@ -390,12 +390,15 @@ def get_compiled_workflow_closure():
390390def test_fetch_lazy (remote ):
391391 mock_client = remote ._client
392392 mock_client .get_task .return_value = Task (
393- id = Identifier (ResourceType .TASK , "p" , "d" , "n" , "v" ), closure = LIST_OF_TASK_CLOSURES [0 ]
393+ id = Identifier (ResourceType .TASK , "p" , "d" , "n" , "v" ),
394+ closure = LIST_OF_TASK_CLOSURES [0 ],
395+ short_description = "task description" ,
394396 )
395397
396398 mock_client .get_workflow .return_value = Workflow (
397399 id = Identifier (ResourceType .TASK , "p" , "d" , "n" , "v" ),
398400 closure = WorkflowClosure (compiled_workflow = get_compiled_workflow_closure ()),
401+ short_description = "workflow description" ,
399402 )
400403
401404 lw = remote .fetch_workflow_lazy (name = "wn" , version = "v" )
@@ -453,8 +456,9 @@ def test_launch_backfill(remote):
453456 mock_client .get_workflow .return_value = Workflow (
454457 id = Identifier (ResourceType .WORKFLOW , "p" , "d" , "daily2" , "v" ),
455458 closure = WorkflowClosure (
456- compiled_workflow = CompiledWorkflowClosure (primary = ser_wf , sub_workflows = [], tasks = tasks )
459+ compiled_workflow = CompiledWorkflowClosure (primary = ser_wf , sub_workflows = [], tasks = tasks ),
457460 ),
461+ short_description = "workflow description" ,
458462 )
459463
460464 wf = remote .launch_backfill (
@@ -478,6 +482,7 @@ def test_fetch_workflow_with_branch(mock_promote, mock_workflow, remote):
478482 mock_client .get_workflow .return_value = Workflow (
479483 id = Identifier (ResourceType .TASK , "p" , "d" , "n" , "v" ),
480484 closure = WorkflowClosure (compiled_workflow = MagicMock ()),
485+ short_description = "workflow description" ,
481486 )
482487
483488 admin_launch_plan = MagicMock ()
@@ -496,6 +501,7 @@ def test_fetch_workflow_with_nested_branch(mock_promote, mock_workflow, remote):
496501 mock_client .get_workflow .return_value = Workflow (
497502 id = Identifier (ResourceType .TASK , "p" , "d" , "n" , "v" ),
498503 closure = WorkflowClosure (compiled_workflow = MagicMock ()),
504+ short_description = "workflow description" ,
499505 )
500506 admin_launch_plan = MagicMock ()
501507 admin_launch_plan .spec = {"workflow_id" : 123 }
@@ -866,7 +872,6 @@ def workflow1():
866872 assert isinstance (registered_workflow , FlyteWorkflow )
867873 assert registered_workflow .id == Identifier (ResourceType .WORKFLOW , "flytesnacks" , "development" , "tests.flytekit.unit.remote.test_remote.workflow1" , "dummy_version" )
868874
869-
870875@mock .patch ("flytekit.remote.remote.get_serializable" )
871876@mock .patch ("flytekit.remote.remote.FlyteRemote.fetch_launch_plan" )
872877@mock .patch ("flytekit.remote.remote.FlyteRemote.raw_register" )
0 commit comments