mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 07:21:27 +00:00
fix: type in path to PrometheusQueries
This commit is contained in:
parent
60c5e12946
commit
60e0dcc6cd
|
@ -78,7 +78,7 @@ def generate_mock_query_with_options(name):
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_cpu_usage(mocker):
|
def mock_cpu_usage(mocker):
|
||||||
mock = mocker.patch(
|
mock = mocker.patch(
|
||||||
"selfprivacy_api.utils.PrometheusQueries._sent_query",
|
"selfprivacy_api.utils.prometheus.PrometheusQueries._sent_query",
|
||||||
return_value=MOCK_CPU_USAGE_RESPONSE["data"]["monitoring"]["cpu_usage"],
|
return_value=MOCK_CPU_USAGE_RESPONSE["data"]["monitoring"]["cpu_usage"],
|
||||||
)
|
)
|
||||||
return mock
|
return mock
|
||||||
|
@ -87,7 +87,7 @@ def mock_cpu_usage(mocker):
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_memory_usage(mocker):
|
def mock_memory_usage(mocker):
|
||||||
mock = mocker.patch(
|
mock = mocker.patch(
|
||||||
"selfprivacy_api.utils.PrometheusQueries._sent_query",
|
"selfprivacy_api.utils.prometheus.PrometheusQueries._sent_query",
|
||||||
return_value=MOCK_MEMORY_USAGE_RESPONSE["data"]["monitoring"]["memory_usage"],
|
return_value=MOCK_MEMORY_USAGE_RESPONSE["data"]["monitoring"]["memory_usage"],
|
||||||
)
|
)
|
||||||
return mock
|
return mock
|
||||||
|
@ -96,7 +96,7 @@ def mock_memory_usage(mocker):
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_disk_usage(mocker):
|
def mock_disk_usage(mocker):
|
||||||
mock = mocker.patch(
|
mock = mocker.patch(
|
||||||
"selfprivacy_api.utils.PrometheusQueries._sent_query",
|
"selfprivacy_api.utils.prometheus.PrometheusQueries._sent_query",
|
||||||
return_value=MOCK_DISK_USAGE_RESPONSE["data"]["monitoring"]["disk_usage"],
|
return_value=MOCK_DISK_USAGE_RESPONSE["data"]["monitoring"]["disk_usage"],
|
||||||
)
|
)
|
||||||
return mock
|
return mock
|
||||||
|
|
Loading…
Reference in a new issue