dstandish commented on code in PR #27116:
URL: https://github.com/apache/airflow/pull/27116#discussion_r999998470
##########
tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py:
##########
@@ -102,15 +106,14 @@ def run_pod(self, operator: KubernetesPodOperator,
map_index: int = -1) -> k8s.V
remote_pod_mock = MagicMock()
remote_pod_mock.status.phase = 'Succeeded'
self.await_pod_mock.return_value = remote_pod_mock
- if not isinstance(self.hook_mock.return_value.is_in_cluster, bool):
- self.hook_mock.return_value.is_in_cluster = True
Review Comment:
instead of doing this, i just read the value from the actual hook (since
we're no longer patching it globally)
--
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]