当前位置: 首页>>代码示例>>Python>>正文


Python LoggerSetup.is_setup_loaded方法代码示例

本文整理汇总了Python中log.loggersetup.LoggerSetup.is_setup_loaded方法的典型用法代码示例。如果您正苦于以下问题:Python LoggerSetup.is_setup_loaded方法的具体用法?Python LoggerSetup.is_setup_loaded怎么用?Python LoggerSetup.is_setup_loaded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在log.loggersetup.LoggerSetup的用法示例。


在下文中一共展示了LoggerSetup.is_setup_loaded方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_close

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_close(self):
        """
        Tests close
        :return: Tests results
        """
        LoggerSetup.setup()
        LoggerSetup.shutdown()

        self.assertEqual(False, LoggerSetup.is_setup_loaded())
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:11,代码来源:test_AP_Logger.py

示例2: test_is_loaded

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_is_loaded(self):
        """
        Tests is loaded
        :return: Tests results
        """
        LoggerSetup.setup()
        result = LoggerSetup.is_setup_loaded()
        LoggerSetup.shutdown()

        self.assertEqual(True, result)
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:12,代码来源:test_AP_Logger.py

示例3: test_setup

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_setup(self):
        """
        Tests setup
        :return: Tests results
        """

        LoggerSetup.setup(10)

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:13,代码来源:test_AP_Logger.py

示例4: test_info

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_info(self):
        """
        Tests info
        :return: Tests results
        """
        LoggerSetup.setup(10)

        logging.info("Info")

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:14,代码来源:test_AP_Logger.py

示例5: test_critical

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_critical(self):
        """
        Tests critical
        :return: Tests results
        """
        LoggerSetup.setup(10)

        logging.critical("Critical")

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:14,代码来源:test_AP_Logger.py

示例6: test_error

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_error(self):
        """
        Tests error
        :return: Tests results
        """
        LoggerSetup.setup(10)

        logging.error("Error")

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:14,代码来源:test_AP_Logger.py

示例7: test_warning

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_warning(self):
        """
        Tests warning
        :return: Tests results
        """
        LoggerSetup.setup(10)

        logging.warning("Warning")

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:14,代码来源:test_AP_Logger.py

示例8: test_debug

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_debug(self):
        """
        Tests debug
        :return: Tests results
        """
        LoggerSetup.setup(10)

        logging.debug("Debug")

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:14,代码来源:test_AP_Logger.py

示例9: test_log_level_tab

# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
    def test_log_level_tab(self):
        """
        Test log level tab
        :return: Test results
        """
        LoggerSetup.setup(10)

        logging.info("%sInfo deep 2", LoggerSetup.get_log_deep(2))
        logging.info("%sInfo deep 3 with - as char", LoggerSetup.get_log_deep(3, '-'))

        self.assertEqual(True, LoggerSetup.is_setup_loaded())

        LoggerSetup.shutdown()
开发者ID:PumucklOnTheAir,项目名称:TestFramework,代码行数:15,代码来源:test_AP_Logger.py


注:本文中的log.loggersetup.LoggerSetup.is_setup_loaded方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。