本文整理汇总了Python中simple_virtuoso_migrate.main.Main._execution_log方法的典型用法代码示例。如果您正苦于以下问题:Python Main._execution_log方法的具体用法?Python Main._execution_log怎么用?Python Main._execution_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类simple_virtuoso_migrate.main.Main
的用法示例。
在下文中一共展示了Main._execution_log方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_it_should_write_the_message_to_cli_using_default_color
# 需要导入模块: from simple_virtuoso_migrate.main import Main [as 别名]
# 或者: from simple_virtuoso_migrate.main.Main import _execution_log [as 别名]
def test_it_should_write_the_message_to_cli_using_default_color(self, cli_mock, log_mock, simplevirtuosomigrate_mock):
self.initial_config.update({'log_level': 3})
main = Main(config=Config(self.initial_config))
main._execution_log('message to log')
cli_mock.assert_called_with('message to log', 'CYAN')
示例2: test_it_should_write_the_message_to_cli
# 需要导入模块: from simple_virtuoso_migrate.main import Main [as 别名]
# 或者: from simple_virtuoso_migrate.main.Main import _execution_log [as 别名]
def test_it_should_write_the_message_to_cli(self, cli_mock, log_mock, simplevirtuosomigrate_mock):
main = Main(config=Config(self.initial_config))
main._execution_log('message to log', color='RED', log_level_limit=1)
cli_mock.assert_called_with('message to log', 'RED')