DateParserDisplayTest.py is a debug tool but runs always, only run when debug

svn: r12156
This commit is contained in:
Benny Malengier 2009-02-28 09:18:53 +00:00
parent e8350eaa88
commit 7b809aefda

View File

@ -229,20 +229,21 @@ class DateParserDisplayTest(Tool.Tool):
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
pmgr = PluginManager.get_instance() if __debug__:
pmgr.register_tool( pmgr = PluginManager.get_instance()
name = 'test_for_date_parser_and_displayer', pmgr.register_tool(
category = Tool.TOOL_DEBUG, name = 'test_for_date_parser_and_displayer',
tool_class = DateParserDisplayTest, category = Tool.TOOL_DEBUG,
options_class = Tool.ToolOptions, tool_class = DateParserDisplayTest,
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI, options_class = Tool.ToolOptions,
translated_name = _("Check Localized Date Displayer and Parser"), modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
status = _("Beta"), translated_name = _("Check Localized Date Displayer and Parser"),
author_name = "Martin Hawlisch", status = _("Beta"),
author_email = "martin@hawlisch.de", author_name = "Martin Hawlisch",
description = _("This test tool will create many people showing all" author_email = "martin@hawlisch.de",
" different date variants as birth. The death date is" description = _("This test tool will create many people showing all"
" created by parsing the result of the date displayer for" " different date variants as birth. The death date is"
" the birth date. This way you can ensure that dates" " created by parsing the result of the date displayer for"
" printed can be parsed back in correctly.") " the birth date. This way you can ensure that dates"
) " printed can be parsed back in correctly.")
)