def test_complete(self, evt): test_case = evt.payload level = get_item_level(test_case) self.output_test_case_result(test_case, level) self.add_to_totals(test_case)
def start_spec(self, evt): level = get_item_level(evt.payload) name = evt.payload.name if level > 0: name = u'{0} {1}'.format(self.separator, name) # Output Spec name color = ConsoleColors.GREEN if self.use_color else None print_indent_msg(name, level, color=color) # Output Docstrings if enabled if evt.payload.doc and self.output_docstrings: print_indent_msg(evt.payload.doc, level + 1)
def start_spec(self, evt): level = get_item_level(evt.payload) name = evt.payload.name if level > 0: name = u'\u221F {0}'.format(name) # Output Spec name color = ConsoleColors.GREEN if self.use_color else None print_indent_msg(name, level, color=color) # Output Docstrings if enabled if evt.payload.doc and self.output_docstrings: print_indent_msg(evt.payload.doc, level + 1) # Warn of duplicates if isinstance(evt.payload, DataDescribe) and evt.payload.dup_count: color = ConsoleColors.YELLOW if self.use_color else None print_indent_msg('Warning: Noticed {0} duplicate data ' 'set(s)'.format(evt.payload.dup_count), level + 1, color=color)
def start_spec(self, evt): level = get_item_level(evt.payload) name = evt.payload.name if level > 0: name = u'{0} {1}'.format(self.separator, name) # Output Spec name color = ConsoleColors.GREEN if self.use_color else None print_indent_msg(name, level, color=color) # Output Docstrings if enabled if evt.payload.doc and self.output_docstrings: print_indent_msg(evt.payload.doc, level + 1) # Warn of duplicates if isinstance(evt.payload, DataDescribe) and evt.payload.dup_count: color = ConsoleColors.YELLOW if self.use_color else None print_indent_msg('Warning: Noticed {0} duplicate data ' 'set(s)'.format(evt.payload.dup_count), level + 1, color=color)