summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoravi robusta <avi@robusta.dev>2023-05-29 16:22:59 +0300
committeravi@robusta.dev <avi@robusta.dev>2023-05-29 16:26:52 +0300
commit6404cc51d1c794388e94624fa9e2e1c904c71de4 (patch)
tree7b0cfbaf34a6ff690a8aba6928b4b86252b815fa /tests
parente6c441d83d6f71c56da7f26186d49874506b46ad (diff)
test fix
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index b7d89a0..af43124 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -57,7 +57,7 @@ def mock_prometheus_loader():
metric_points_data = np.array([(t, random.randrange(0, 100)) for t in np.linspace(start_ts, now_ts, 3600)])
with patch(
- "robusta_krr.core.integrations.prometheus.loader.PrometheusLoader.gather_data",
+ "robusta_krr.core.integrations.prometheus.loader.MetricsLoader.gather_data",
new=AsyncMock(
return_value=ResourceHistoryData(
data={pod.name: metric_points_data for pod in TEST_OBJECT.pods},
@@ -76,5 +76,5 @@ def mock_prometheus_loader():
@pytest.fixture(autouse=True, scope="session")
def mock_prometheus_init():
- with patch("robusta_krr.core.integrations.prometheus.loader.PrometheusLoader.__init__", return_value=None):
+ with patch("robusta_krr.core.integrations.prometheus.loader.MetricsLoader.__init__", return_value=None):
yield