def __parse_config(self, config: TConfig) -> NoReturn: config.variables.update(self.__session_variables) config.variables = parse_variables_mapping( config.variables, self.__project_meta.functions) config.name = parse_data(config.name, config.variables, self.__project_meta.functions) config.base_url = parse_data(config.base_url, config.variables, self.__project_meta.functions)
def perform(self) -> TConfig: return TConfig( name=self.__name, base_url=self.__base_url, verify=self.__verify, variables=self.__variables, export=list(set(self.__export)), path=self.__path, )
def __init__(self, name: Text) -> None: caller_frame = inspect.stack()[1] self.__config = TConfig(name=name, path=caller_frame.filename)