Module: check_mk
Branch: master
Commit: b2ad71249ac08101e924118344e5239b22642952
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2ad71249ac081…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 9 12:57:34 2017 +0100
Disabled (not needed) context button refactoring test
Change-Id: I46ecd51ea769864ad6e6cd4c260a107f5280e067
---
tests/web/test_htmllib_integration.py | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/tests/web/test_htmllib_integration.py
b/tests/web/test_htmllib_integration.py
index c835d88..b1abb4c 100644
--- a/tests/web/test_htmllib_integration.py
+++ b/tests/web/test_htmllib_integration.py
@@ -212,21 +212,22 @@ def context_button_test(obj, title, url, icon=None, hot=False,
id_=None, bestof=
obj.end_context_buttons()
-def test_context_buttons():
-
- old = HTMLOrigTester()
- new = HTMLCheck_MKTester()
- old.plug()
- new.plug()
-
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me"))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico"))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id"))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!"))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112, bestof = True))
- gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112, bestof = True, id_in_best=True))
+# TODO: refactoring tests still needed?
+#def test_context_buttons():
+#
+# old = HTMLOrigTester()
+# new = HTMLCheck_MKTester()
+# old.plug()
+# new.plug()
+#
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me"))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico"))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id"))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!"))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112, bestof = True))
+# gentest(old, new, lambda x: context_button_test(x, "testtitle",
"www.test.me", icon="ico", hot=True, id_="id",
hover_title="HoverMeBaby!", fkey=112, bestof = True, id_in_best=True))