Пример #1
0
    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
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
    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
Пример #6
0
    def test__run_benchmark(self):
        runner = Runner(mock.Mock())

        with self.assertRaises(NotImplementedError):
            runner._run_benchmark(mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock())
Пример #7
0
 def show(self, args):
     """Show details of a specific runner type"""
     rtype = Runner.get_cls(args.type[0])
     print(rtype.__doc__)
Пример #8
0
 def do_show(self, args):
     '''Show details of a specific runner type'''
     rtype = Runner.get_cls(args.type[0])
     print rtype.__doc__