Lee-W commented on code in PR #54207:
URL: https://github.com/apache/airflow/pull/54207#discussion_r2342384205
##########
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:
```suggestion
assert mock_log.warning.mock_calls == [mock.call("polling
failed, retrying", exc_info=True)]
```
it probably looks like this
--
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]