Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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,
     )
Ejemplo n.º 3
0
 def __init__(self, name: Text) -> None:
     caller_frame = inspect.stack()[1]
     self.__config = TConfig(name=name, path=caller_frame.filename)