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)
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)
def _setup(parser): args = parser.parse_args(sys.argv[1:]) log.setup(args.verbose) cfg = config.load_config(args.config_file) return args, cfg