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


Python FlakyTestReporter._follow_duplicate_chain方法代码示例

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


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

示例1: execute

# 需要导入模块: from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter [as 别名]
# 或者: from webkitpy.tool.bot.flakytestreporter.FlakyTestReporter import _follow_duplicate_chain [as 别名]
 def execute(self, options, args, tool):
     reporter = FlakyTestReporter(tool, "webkitpy")
     search_string = args[0]
     bug = reporter._lookup_bug_for_flaky_test(search_string)
     if bug:
         bug = reporter._follow_duplicate_chain(bug)
         print "%5s %s" % (bug.id(), bug.title())
     else:
         print "No bugs found matching '%s'" % search_string
开发者ID:3163504123,项目名称:phantomjs,代码行数:11,代码来源:bugfortest.py

示例2: test_follow_duplicate_chain

# 需要导入模块: from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter [as 别名]
# 或者: from webkitpy.tool.bot.flakytestreporter.FlakyTestReporter import _follow_duplicate_chain [as 别名]
 def test_follow_duplicate_chain(self):
     tool = MockTool()
     reporter = FlakyTestReporter(tool, 'dummy-queue')
     bug = tool.bugs.fetch_bug(78)
     self.assertEqual(reporter._follow_duplicate_chain(bug).id(), 76)
开发者ID:,项目名称:,代码行数:7,代码来源:


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