Beispiel #1
0
 def addSuccess(self, test):
     unittest.TestResult.addSuccess(self, test)
     if self.showAll:
         self.stream.writeln(colors.green("ok"))
     elif self.dots:
         self.stream.write(colors.green("."))
         self.stream.flush()
Beispiel #2
0
 def addSuccess(self, test):
     unittest.TestResult.addSuccess(self, test)
     if self.showAll:
         self.stream.writeln(colors.green("ok"))
     elif self.dots:
         self.stream.write(colors.green("."))
         self.stream.flush()
def random_happy():
    return colors.green(choice(happy_messages))
Beispiel #4
0
 def print_success_line(self, test):
     line = green('ok-dokey ') + self.get_elapsed_line(test)
     self.stream.writeln(line)