Module: check_mk
Branch: master
Commit: 7a8d32ef0ba3af3d5ee02ac27f9ec10df370fd48
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a8d32ef0ba3af…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 18 10:00:13 2016 +0200
htmllib tests: Fixed internationalization calls
---
tests/web/classes.py | 6 ------
tests/web/test_htmllib_integration.py | 2 ++
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/tests/web/classes.py b/tests/web/classes.py
index 20ba026..08b6d28 100644
--- a/tests/web/classes.py
+++ b/tests/web/classes.py
@@ -14,12 +14,6 @@ import re
from htmllib import html
from htmllib import HTMLGenerator, HTMLCheck_MK
-# Hack to fix localized calls
-try:
- _
-except:
- _ = lambda x: x
-
# .--Deprecated Renderer-------------------------------------------------.
# | ____ _ _ |
# | | _ \ ___ _ __ _ __ ___ ___ __ _| |_ ___ __| | |
diff --git a/tests/web/test_htmllib_integration.py
b/tests/web/test_htmllib_integration.py
index 323d941..6cafec6 100644
--- a/tests/web/test_htmllib_integration.py
+++ b/tests/web/test_htmllib_integration.py
@@ -10,6 +10,8 @@ sys.path.insert(0, "%s/web/htdocs" % cmk_path())
# external imports
import re
+import i18n
+
# internal imports
from htmllib import html
from htmllib import HTMLGenerator, HTMLCheck_MK