本文整理匯總了Python中webkitpy.common.net.buildbot.Build.layout_test_results方法的典型用法代碼示例。如果您正苦於以下問題:Python Build.layout_test_results方法的具體用法?Python Build.layout_test_results怎麽用?Python Build.layout_test_results使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類webkitpy.common.net.buildbot.Build
的用法示例。
在下文中一共展示了Build.layout_test_results方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_layout_test_results
# 需要導入模塊: from webkitpy.common.net.buildbot import Build [as 別名]
# 或者: from webkitpy.common.net.buildbot.Build import layout_test_results [as 別名]
def test_layout_test_results(self):
buildbot = BuildBot()
builder = Builder(u"Foo Builder (test)", buildbot)
builder._fetch_file_from_results = lambda results_url, file_name: None
build = Build(builder, None, None, None)
# Test that layout_test_results() returns None if the fetch fails.
self.assertEqual(build.layout_test_results(), None)
示例2: _mock_fetch_build
# 需要導入模塊: from webkitpy.common.net.buildbot import Build [as 別名]
# 或者: from webkitpy.common.net.buildbot.Build import layout_test_results [as 別名]
def _mock_fetch_build(build_number):
build = Build(
builder=self.builder,
build_number=build_number,
revision=build_number + 1000,
is_green=build_number < 4
)
results = [self._mock_test_result(testname) for testname in failure(build_number)]
layout_test_results = LayoutTestResults(results)
def mock_layout_test_results():
return layout_test_results
build.layout_test_results = mock_layout_test_results
return build