def __init__(self, source):
     if not os.path.exists('fwunit.yaml'):
         raise RuntimeError(
             'Tests must be run from the directory containing `fwunit.yaml`'
         )
     cfg = config.load_config('fwunit.yaml')
     self.source = sources.load_source(cfg, source)
Пример #2
0
 def __init__(self, source):
     if not os.path.exists('fwunit.yaml'):
         raise RuntimeError('Tests must be run from the directory containing `fwunit.yaml`')
     cfg = config.load_config('fwunit.yaml')
     self.source = sources.load_source(cfg, source)
Пример #3
0
def _setup(parser):
    args = parser.parse_args(sys.argv[1:])
    log.setup(args.verbose)
    cfg = config.load_config(args.config_file)
    return args, cfg
Пример #4
0
def _setup(parser):
    args = parser.parse_args(sys.argv[1:])
    log.setup(args.verbose)
    cfg = config.load_config(args.config_file)
    return args, cfg