def printErrors(self, output_format): """Print out each :class:`syntribos.issue.Issue` that was encountered :param str output_format: Either "json" or "xml" """ self.output["errors"] = self.errors self.output["failures"] = self.failures formatter_types = {"json": JSONFormatter(self)} formatter = formatter_types[output_format] formatter.report(self.output)
def dry_run_report(cls, output): """Reports the dry run through a formatter.""" formatter_types = {"json": JSONFormatter(result)} formatter = formatter_types[CONF.output_format] formatter.report(output) test_log = cls.log_path print(syntribos.SEP) print(_("LOG PATH...: {path}").format(path=test_log)) print(syntribos.SEP)
def printErrors(self, output_format): """Print out each :class:`syntribos.issue.Issue` that was encountered :param str output_format: Either "json" or "xml" """ formatter_types = { "json": JSONFormatter(self) } formatter = formatter_types[output_format] if self.dots or self.showAll: self.stream.writeln() formatter.report()