Module: check_mk
Branch: master
Commit: 3fed0c2236960bea3bb95db693f3d7ba9da7ee14
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3fed0c2236960b…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Feb 7 13:28:02 2018 +0100
Remove superfluous monkeypatch argument from some check tests
Change-Id: I85250579c5528fead71d0ccfd6676e9f65eb5093
---
tests/checks/test_df_check.py | 2 +-
tests/checks/test_kernel_check.py | 2 +-
tests/checks/test_mkbackup_check.py | 2 +-
tests/checks/test_statgrab_cpu_check.py | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/checks/test_df_check.py b/tests/checks/test_df_check.py
index 1681b5c..b34eee1 100644
--- a/tests/checks/test_df_check.py
+++ b/tests/checks/test_df_check.py
@@ -260,7 +260,7 @@ def test_df_discovery_with_parse(check_manager, monkeypatch, info,
expected_resu
(u'New_Volume E:/', "default", info_df_win, {}),
(u'btrfs /dev/sda1', "default", info_df_btrfs, {}),
])
-def test_df_check_with_parse(check_manager, monkeypatch, item, params, info,
expected_result):
+def test_df_check_with_parse(check_manager, item, params, info, expected_result):
check = check_manager.get_check("df")
if params == "default":
diff --git a/tests/checks/test_kernel_check.py b/tests/checks/test_kernel_check.py
index f8c495b..6c3dd90 100644
--- a/tests/checks/test_kernel_check.py
+++ b/tests/checks/test_kernel_check.py
@@ -9,7 +9,7 @@ pytestmark = pytest.mark.checks
@pytest.mark.parametrize("time_to_info,params,predicate", [
(lambda t: [["cpu", 15*t, 10*t, 5*t, 5*t, 5*t, 5*t, 5*t]], {}, lambda cr:
True),
])
-def test_kernel_util_check(check_manager, monkeypatch, time_to_info, params, predicate):
+def test_kernel_util_check(check_manager, time_to_info, params, predicate):
check = check_manager.get_check("kernel.util")
try:
list(check.run_check(None, params, time_to_info(0)))
diff --git a/tests/checks/test_mkbackup_check.py b/tests/checks/test_mkbackup_check.py
index a93bccb..1128973 100644
--- a/tests/checks/test_mkbackup_check.py
+++ b/tests/checks/test_mkbackup_check.py
@@ -157,6 +157,6 @@ info_3 = [[u'[[[system:test1]]]'],
info_2,
info_3,
])
-def test_mkbackup_parse(check_manager, monkeypatch, info):
+def test_mkbackup_parse(check_manager, info):
check = check_manager.get_check("mkbackup")
check.run_parse(info)
diff --git a/tests/checks/test_statgrab_cpu_check.py
b/tests/checks/test_statgrab_cpu_check.py
index e001129..ffc390e 100644
--- a/tests/checks/test_statgrab_cpu_check.py
+++ b/tests/checks/test_statgrab_cpu_check.py
@@ -21,7 +21,7 @@ info_statgrab_cpu_hpux = lambda t: [[u'idle', u'%d' %
int(t*5)],
("wait", 20.0) in cr.perfdata
),
])
-def test_statgrab_cpu_check(check_manager, monkeypatch, time_to_info, params,
predicate):
+def test_statgrab_cpu_check(check_manager, time_to_info, params, predicate):
check = check_manager.get_check("statgrab_cpu")
# NOTE: We do not mock the time module here, because the check does not depend on
any
# absolute rates. The mocking that was included in this test previously had no