def do_show(self, args): '''Show details of a specific runner type''' rtype = Runner.get_cls(args.type[0]) print rtype.__doc__ doc_list = rtype.__doc__.split("\n") return doc_list
def list_all(self, *args): """List existing runner types""" types = Runner.get_types() runner_table = prettytable.PrettyTable(['Type', 'Description']) runner_table.align = 'l' for rtype in types: runner_table.add_row( [rtype.__execution_type__, rtype.__doc__.split("\n")[0]]) print(runner_table)
def list_all(self, args): """List existing runner types""" types = Runner.get_types() print_hbar(78) print("| %-16s | %-60s" % ("Type", "Description")) print_hbar(78) for rtype in types: print("| %-16s | %-60s" % (rtype.__execution_type__, rtype.__doc__.split("\n")[0])) print_hbar(78)
def do_list(self, args): '''List existing runner types''' types = Runner.get_types() print_hbar(78) print("| %-16s | %-60s" % ("Type", "Description")) print_hbar(78) for rtype in types: print "| %-16s | %-60s" % (rtype.__execution_type__, rtype.__doc__.split("\n")[0]) print_hbar(78)
def do_list(self, args): '''List existing runner types''' runner_list = [] types = Runner.get_types() print_hbar(78) print("| %-16s | %-60s" % ("Type", "Description")) print_hbar(78) for rtype in types: runner = { 'Type': rtype.__execution_type__, 'Description': rtype.__doc__.split("\n")[0] } runner_list.append(runner) print "| %-16s | %-60s" % (rtype.__execution_type__, rtype.__doc__.split("\n")[0]) print_hbar(78) return runner_list
def test__run_benchmark(self): runner = Runner(mock.Mock()) with self.assertRaises(NotImplementedError): runner._run_benchmark(mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock())
def show(self, args): """Show details of a specific runner type""" rtype = Runner.get_cls(args.type[0]) print(rtype.__doc__)
def do_show(self, args): '''Show details of a specific runner type''' rtype = Runner.get_cls(args.type[0]) print rtype.__doc__