olchas commented on a change in pull request #13256:
URL: https://github.com/apache/airflow/pull/13256#discussion_r554453370
##########
File path: tests/providers/google/cloud/operators/test_dataproc.py
##########
@@ -246,9 +247,11 @@ def test_execute(self, mock_hook):
timeout=TIMEOUT,
metadata=METADATA,
)
+
to_dict_mock.assert_called_once_with(mock_hook().create_cluster().result())
+ @mock.patch(DATAPROC_PATH.format("Cluster.to_dict"))
@mock.patch(DATAPROC_PATH.format("DataprocHook"))
- def test_execute_if_cluster_exists(self, mock_hook):
+ def test_execute_if_cluster_exists(self, mock_hook, _):
Review comment:
```suggestion
def test_execute_if_cluster_exists(self, mock_hook, to_dict_mock):
```
And `to_dict_mock.assert_called_once_with(mock_hook().get_cluster())` at the
end of this test. WDYT?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]