From 435efdf232ba2385dc44e3ffcbc6f4bf82991405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Mon, 29 May 2023 16:03:43 +0300 Subject: Fix load_kubeconfig mock --- tests/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 0617ddc..b7d89a0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,9 +44,8 @@ def mock_list_scannable_objects(): @pytest.fixture(autouse=True, scope="session") -def mock_config_loaded(): - with patch("robusta_krr.core.models.config.Config.config_loaded", new_callable=PropertyMock) as mock_config: - mock_config.return_value = True +def mock_load_kubeconfig(): + with patch("robusta_krr.core.models.config.Config.load_kubeconfig", return_value=None): yield -- cgit v1.2.3