本文整理匯總了Python中lnt.server.reporting.analysis.ComparisonResult.get_test_status方法的典型用法代碼示例。如果您正苦於以下問題:Python ComparisonResult.get_test_status方法的具體用法?Python ComparisonResult.get_test_status怎麽用?Python ComparisonResult.get_test_status使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類lnt.server.reporting.analysis.ComparisonResult
的用法示例。
在下文中一共展示了ComparisonResult.get_test_status方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_comp
# 需要導入模塊: from lnt.server.reporting.analysis import ComparisonResult [as 別名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 別名]
def test_comp(self):
"""Test a real example."""
curr_samples = [0.0887, 0.0919, 0.0903]
prev = [0.0858]
uninteresting = ComparisonResult(min, False, False, curr_samples, prev)
self.assertFalse(uninteresting.is_result_interesting())
self.assertEquals(uninteresting.get_test_status(), UNCHANGED_PASS)
self.assertEquals(uninteresting.get_value_status(), UNCHANGED_PASS)
示例2: test_keep_on_failing_status
# 需要導入模塊: from lnt.server.reporting.analysis import ComparisonResult [as 別名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 別名]
def test_keep_on_failing_status(self):
"""Test getting a repeated fail."""
improved = ComparisonResult(min, True, True, None, None, None, None)
self.assertEquals(improved.get_test_status(), UNCHANGED_FAIL)
示例3: test_regressed_status
# 需要導入模塊: from lnt.server.reporting.analysis import ComparisonResult [as 別名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 別名]
def test_regressed_status(self):
"""Test getting a test status improvement."""
improved = ComparisonResult(min, True, False, None, [10.], None, None)
self.assertEquals(improved.get_test_status(), REGRESSED)
示例4: test_improved_status
# 需要導入模塊: from lnt.server.reporting.analysis import ComparisonResult [as 別名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 別名]
def test_improved_status(self):
"""Test getting a test status improvement."""
improved = ComparisonResult(min, False, True, [1.], None, None, None)
self.assertEquals(improved.get_test_status(), IMPROVED)