dstandish commented on code in PR #26766:
URL: https://github.com/apache/airflow/pull/26766#discussion_r988533828
##########
tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py:
##########
@@ -893,6 +914,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:
same here, probably should be None right?
```suggestion
self.hook_mock.return_value.get_xcom_sidecar_container_image.return_value = None
```
##########
tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py:
##########
@@ -837,6 +837,7 @@ def test_push_xcom_pod_info(
self, mock_await_xcom_sidecar_container_start, mock_extract_xcom,
do_xcom_push
):
"""pod name and namespace are *always* pushed; do_xcom_push only
controls xcom sidecar"""
+
self.hook_mock.return_value.get_xcom_sidecar_container_image.return_value =
"alpine"
Review Comment:
Oh i see, yeah, probably better to have it return None then, since here
there is no connection being used, so it wouldn't return 'alpine' in this case?
```suggestion
self.hook_mock.return_value.get_xcom_sidecar_container_image.return_value = None
```
--
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]