示例#1
0
 def get_options(cls):
     """Additional and updated config options for Testplan class."""
     return {
         ConfigOption("parser", default=TestplanParser):
         And(has_method("parse_args"), has_method("process_args")),
         ConfigOption("runnable", default=TestRunner):
         is_subclass(entity.Runnable),
     }
示例#2
0
 def get_options(cls):
     """Additional config options for Testplan class"""
     return {
         ConfigOption('runnable', default=TestRunner):
         is_subclass(TestRunner),
         ConfigOption('resources', default=[]): [entity.Resource],
         ConfigOption('parser', default=TestplanParser):
         has_method('parse_args')
     }