本文整理汇总了Python中mockable_test_result.MockableTestResult.startTest方法的典型用法代码示例。如果您正苦于以下问题:Python MockableTestResult.startTest方法的具体用法?Python MockableTestResult.startTest怎么用?Python MockableTestResult.startTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mockable_test_result.MockableTestResult
的用法示例。
在下文中一共展示了MockableTestResult.startTest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: startTest
# 需要导入模块: from mockable_test_result import MockableTestResult [as 别名]
# 或者: from mockable_test_result.MockableTestResult import startTest [as 别名]
def startTest(self, test):
MockableTestResult.startTest(self, test)
if helper.cls_name(test) != self.prevTestClassName:
self.prevTestClassName = helper.cls_name(test)
if not self.failures:
self.stream.writeln()
self.stream.writeln("Thinking {0}".format(helper.cls_name(test)))
示例2: startTest
# 需要导入模块: from mockable_test_result import MockableTestResult [as 别名]
# 或者: from mockable_test_result.MockableTestResult import startTest [as 别名]
def startTest(self, test):
MockableTestResult.startTest(self, test)
if helper.cls_name(test) != self.prevTestClassName:
self.prevTestClassName = helper.cls_name(test)
if not self.failures:
self.stream.writeln()
self.stream.writeln("{0}{1}Thinking {2}".format(
Fore.RESET, Style.NORMAL, helper.cls_name(test)))
示例3: startTest
# 需要导入模块: from mockable_test_result import MockableTestResult [as 别名]
# 或者: from mockable_test_result.MockableTestResult import startTest [as 别名]
def startTest(self, test):
MockableTestResult.startTest(self, test)
if helper.cls_name(test) != self.prevTestClassName:
self.prevTestClassName = helper.cls_name(test)
if not self.failures:
self.stream.writeln()
self.stream.writeln("{0}{1}Learning {2}".format(Fore.RESET, Style.NORMAL, helper.cls_name(test)))
if helper.cls_name(test) not in ["AboutAsserts", "AboutExtraCredit"]:
self.lesson_pass_count += 1