Exemplo n.º 1
0
    def dump_term(self, templates, template_format, use_ansi, debug_logs):
        """Convert collection for terminal.

        Args:
           templates (dict): Dictionary that contains content templates.
           template_format (str): Define the output format
           use_ansi (bool): Define if ANSI characters are used.
           debug_logs (bool): Define if debut information is included.
        """

        text = Const.EMPTY
        if template_format == Const.CONTENT_FORMAT_MKDN:
            text = self.dump_mkdn(templates)
        else:
            text = self._dump_term(use_ansi, debug_logs)

        self._logger.debug('printing content to terminal stdout')
        Logger.print_stdout(text)
Exemplo n.º 2
0
    def print_tests(self, ansi=True):
        """Print tests case documentation."""

        self.create_test_document()
        text = self.format_test_document(ansi)
        Logger.print_stdout(text)