uranusjr commented on a change in pull request #22213:
URL: https://github.com/apache/airflow/pull/22213#discussion_r825386896
##########
File path: tests/providers/google/cloud/hooks/test_dataproc.py
##########
@@ -474,7 +474,7 @@ def test_wait_for_job(self, mock_get_job):
mock.call(region=GCP_LOCATION, job_id=JOB_ID,
project_id=GCP_PROJECT),
mock.call(region=GCP_LOCATION, job_id=JOB_ID,
project_id=GCP_PROJECT),
]
- mock_get_job.has_calls(calls)
+ mock_get_job.assert_has_calls(calls, any_order=True)
Review comment:
Why `any_order` here? Can we order the mock calls correctly so this is
not needed?
(Same applies for other usages)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]