Skip to content

Commit

Permalink
minor: unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Oct 19, 2023
1 parent 344df90 commit a2a9122
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gcloud/tests/taskflow3/models/taskflow/test_get_node_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_include_data_is_false(self):
taskflow.has_node = MagicMock(return_value=True)
dispatcher = MagicMock()
get_node_data_return = {"result": True, "data": {}}
get_node_detail_return = {"result": True, "data": {}}
get_node_detail_return = {"result": True, "data": {"id": "id", "parent_id": "parent_id"}}
dispatcher.get_node_data = MagicMock(return_value=get_node_data_return)
dispatcher.get_node_detail = MagicMock(return_value=get_node_detail_return)
dispatcher_init = MagicMock(return_value=dispatcher)
Expand Down Expand Up @@ -98,7 +98,15 @@ def test_include_data_is_false(self):
loop=loop,
subprocess_simple_inputs=False,
)
self.assertEqual(detail, {"code": 0, "data": {}, "message": "", "result": True})
self.assertEqual(
detail,
{
"code": 0,
"data": {"auto_retry_info": {}, "id": "id", "parent_id": "parent_id"},
"message": "",
"result": True,
},
)

def test_success(self):
taskflow = TaskFlowInstance()
Expand Down

0 comments on commit a2a9122

Please sign in to comment.