TobKed commented on a change in pull request #8550:
URL: https://github.com/apache/airflow/pull/8550#discussion_r497550006



##########
File path: tests/providers/google/cloud/hooks/test_dataflow.py
##########
@@ -984,15 +1034,17 @@ def test_dataflow_job_is_job_running_with_no_job(self):
         self.assertEqual(False, result)
 
     def test_dataflow_job_cancel_job(self):
-        job = {"id": TEST_JOB_ID, "name": TEST_JOB_NAME, "currentState": 
DataflowJobStatus.JOB_STATE_RUNNING}
-
         get_method = (
             self.mock_dataflow.projects.return_value.
             locations.return_value.
             jobs.return_value.
             get
         )
-        get_method.return_value.execute.return_value = job
+        get_method.return_value.execute.side_effect = [
+            {"id": TEST_JOB_ID, "name": TEST_JOB_NAME, "currentState": 
DataflowJobStatus.JOB_STATE_RUNNING},

Review comment:
       created separate issue for that: 
https://github.com/apache/airflow/issues/11205




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to