summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-29 16:03:43 +0300
committerПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-29 16:03:43 +0300
commit435efdf232ba2385dc44e3ffcbc6f4bf82991405 (patch)
tree0e1eb9148b7b2abb8efcf93ed2ad04ddbdd494a2
parent81ec6d0e5d486a4b7087365a3398f69419738b21 (diff)
Fix load_kubeconfig mock
-rw-r--r--tests/conftest.py5
1 files changed, 2 insertions, 3 deletions
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