From 155a9d947dedb30e8d8e11bb2e49a9986cec8ec2 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 31 Jan 2024 15:56:27 +0000 Subject: [PATCH] clean up --- tests/operators/test_kubernetes.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/operators/test_kubernetes.py b/tests/operators/test_kubernetes.py index 29fe54084..5035a2d6c 100644 --- a/tests/operators/test_kubernetes.py +++ b/tests/operators/test_kubernetes.py @@ -226,15 +226,10 @@ def cleanup(pod: str, remote_pod: str): test_operator._handle_warnings(context) -@patch("airflow.providers.cncf.kubernetes.operators.pod.KubernetesPodOperator.hook") def test_created_pod(test_hook): - test_hook.is_in_cluster = False - test_hook._get_namespace.return_value.to_dict.return_value = "foo" ls_kwargs = {"env_vars": {"FOO": "BAR"}} ls_kwargs.update(base_kwargs) ls_operator = DbtLSKubernetesOperator(**ls_kwargs) - from unittest.mock import MagicMock - ls_operator.hook = MagicMock() ls_operator.hook.is_in_cluster = False ls_operator.hook._get_namespace.return_value.to_dict.return_value = "foo"