def write_config(self): get_user_info = self.get_user_info() get_user_info_re = re.sub('E10ADC3949BA59ABBE56E057F20F883E', str(self.pwd), str(get_user_info)) user_info_area_name = {'Borrower', 'Investors', 'Manager'} user_info = dict(zip(user_info_area_name, eval(get_user_info_re))) do_config.write_config(user_info, CONFIG_USER_INFO_FILE_PATH)
def generate_users_config(): ''' 生成三个用户信息 :return: ''' user_datas_dict = {} user_datas_dict.update(create_new_user('admin_user')) user_datas_dict.update(create_new_user('invest_user')) user_datas_dict.update(create_new_user('browser_user')) do_config.write_config(user_datas_dict, USER_ACCOUNTS_FILE_PATH)
def generate_users_config(): """ 生成三个用户信息 :return: """ users_datas_dict = {} users_datas_dict.update(create_new_user("admin_user")) users_datas_dict.update(create_new_user("borrow_user")) users_datas_dict.update(create_new_user("invest_user")) do_config.write_config(users_datas_dict, USER_ACCOUNTS_FILE_PATH)