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 bf4472f commit d354194
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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 @@ -107,7 +107,7 @@ def test_success(self):
taskflow.has_node = MagicMock(return_value=True)
dispatcher = MagicMock()
get_node_data_return = {"result": True, "data": {"data": "data"}}
get_node_detail_return = {"result": True, "data": {"detail": "detail"}}
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 @@ -149,5 +149,11 @@ def test_success(self):
subprocess_simple_inputs=False,
)
self.assertEqual(
detail, {"code": 0, "data": {"data": "data", "detail": "detail"}, "message": "", "result": True}
detail,
{
"code": 0,
"data": {"data": "data", "id": "id", "parent_id": "parent_id", "auto_retry_info": {}},
"message": "",
"result": True,
},
)

0 comments on commit d354194

Please sign in to comment.