potiuk edited a comment on issue #5931: [AIRFLOW-5322] Fix flaky gcp transfer 
hook test
URL: https://github.com/apache/airflow/pull/5931#issuecomment-525470764
 
 
   I think it could be rathern another - known problem with has_calls mock 
library. It won't preserve the order of calls in python 3.5 sometimes if they 
are run very quickly one after the other.  If that's the case, then I think 
better (and simpler) solution is to add any_order=True to assert_has_calls 
method. 
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_has_calls

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to