def __init__(self, program_data): """ :type program_data: noseapp.core.program.ProgramData """ if program_data.config.options.ls: output.tree(program_data.suites, show_docs=program_data.config.options.doc) self.__program_data = program_data self.__command = get_command(self.__program_data) self.__strategy = get_strategy(self.__command)
def show_tree(self, show_docs=False, doc_lines=1): """ Show tree of suites. :param show_docs: print or not print docs :type show_docs: bool :param doc_lines: number lines of doc :type doc_lines: int """ from noseapp.tools import output output.tree(self.suites, show_docs=show_docs, doc_lines=doc_lines, exit=False)