本文整理汇总了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
示例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)