Skip to content

Commit

Permalink
Fix error when running test
Browse files Browse the repository at this point in the history
FAILED tests/operators/test_kubernetes.py::test_created_pod - kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found.
https://github.com/astronomer/astronomer-cosmos/actions/runs/7726274202/job/21063656952
  • Loading branch information
tatiana committed Jan 31, 2024
1 parent 7e02151 commit bb2d698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/operators/test_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def cleanup(pod: str, remote_pod: str):
test_operator._handle_warnings(context)


@patch("airflow.providers.cncf.kubernetes.operators.pod.KubernetesPodOperator.hook")
# @patch("airflow.providers.cncf.kubernetes.operators.pod.KubernetesPodOperator.hook")
@patch("airflow.providers.cncf.kubernetes.hooks.kubernetes.KubernetesHook")
def test_created_pod(test_hook):
test_hook.is_in_cluster = False
test_hook._get_namespace.return_value.to_dict.return_value = "foo"
Expand Down

0 comments on commit bb2d698

Please sign in to comment.