Пример #1
0
 def __call__(self, parser, namespace, values, option_string=None):
     from talos.config import suites_conf
     print 'Available suites:'
     for name in suites_conf():
         print ' ', name
     print
     parser.exit()
Пример #2
0
 def __call__(self, parser, namespace, values, option_string=None):
     from talos.config import suites_conf
     print('Available suites:')
     conf = suites_conf()
     max_suite_name = max([len(s) for s in conf])
     pattern = " %%-%ds (%%s)" % max_suite_name
     for name in conf:
         print(pattern % (name, ':'.join(conf[name]['tests'])))
     print
     parser.exit()
Пример #3
0
 def __call__(self, parser, namespace, values, option_string=None):
     from talos.config import suites_conf
     print('Available suites:')
     conf = suites_conf()
     max_suite_name = max([len(s) for s in conf])
     pattern = " %%-%ds (%%s)" % max_suite_name
     for name in conf:
         print(pattern % (name, ':'.join(conf[name]['tests'])))
     print
     parser.exit()