sjyangkevin commented on code in PR #54207:
URL: https://github.com/apache/airflow/pull/54207#discussion_r2342368870
##########
providers/jenkins/tests/unit/jenkins/operators/test_jenkins_job_trigger.py:
##########
@@ -116,6 +133,10 @@ def test_execute_job_polling_loop(self, parameters,
mocker):
operator.execute(None)
assert jenkins_mock.get_build_info.call_count == 2
+ assert jenkins_mock.get_queue_item.call_count == 4
+
+ assert mock_log.warning.call_count == 2
+ assert mock_log.warning.call_args == mock.call("polling failed,
retrying", exc_info=True)
Review Comment:
Thanks for the feedback. Will try to understand it more. In this case, since
no http request is sent. Should I adjust the assertions to a list of call which
outline the params for each call?
--
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]