def setUp(self): self.ret_chn = ReturnChannel(stdout_callback, {}) command_list = load_modules() self.conf_path = os.path.join(get_directory_of_current_module(self), CONF_FILE_LOCATION) self.ret_chn = ReturnChannel(stdout_callback, {}) self.config = Config('help', '', command_list, [], self.ret_chn, 'shell') self.rest_client = RESTBase('sde', 'conf_name', self.config) self.config.import_custom_options() Config.parse_config_file(self.config, self.conf_path)
def setUp(self): """ Plugin setup mirrors the setup that occurs during a sync_alm call. Also initializes the mock responses. """ command_list = load_modules() self.config = Config('help', '', command_list, [], self.ret_chn, 'shell') self.init_alm_connector() self.pre_parse_config() self.config.import_custom_options() self.config['alm_reference_context'] = 2 Config.parse_config_file(self.config, self.conf_path) self.post_parse_config() self.init_response_generator() self.mock_sde_response.initialize(self.config) self.mock_alm_response.initialize(self.response_generator) self.connector.initialize() AlmConnector.init_statuses(self.connector)
def setUp(self): command_list = load_modules() self.config = Config('help', '', command_list, [], self.ret_chn, 'shell') self.init_alm_connector() self.config.import_custom_options() Config.parse_config_file(self.config, self.conf_path)