bdsoha commented on code in PR #26766:
URL: https://github.com/apache/airflow/pull/26766#discussion_r988508671
##########
tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py:
##########
@@ -893,6 +894,7 @@ def test_mark_checked_unexpected_exception(self,
mock_patch_already_checked, moc
@mock.patch(f"{POD_MANAGER_CLASS}.await_xcom_sidecar_container_start")
def test_wait_for_xcom_sidecar_iff_push_xcom(self, mock_await,
mock_extract_xcom, do_xcom_push):
"""Assert we wait for xcom sidecar container if and only if we push
xcom."""
+
self.hook_mock.return_value.get_xcom_sidecar_container_image.return_value =
"alpine"
Review Comment:
@dstandish without this, the following error is raised:
`yaml.representer.RepresenterError: ('cannot represent an object',
<MagicMock name='KubernetesHook().get_xcom_sidecar_container_image().to_dict()'
id='139908045486608'>)`
--
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]