def TEST_suite_data_directory(self): url_path = "Resources/WebData/SuiteFileGroups" directory_info_list = FileService.get_files_in_directory(url_path) updated_list = TextActions.append_prefix_to_string_list(url_path, directory_info_list) Log.log(updated_list) combined_list = FileService.get_joined_files_from_combined_directory_list(updated_list) Log.log(combined_list)
def TEST_suite_data_directory(self): url_path = "Resources/WebData/SuiteFileGroups" directory_info_list = FileService.get_files_in_directory(url_path) updated_list = TextActions.append_prefix_to_string_list( url_path, directory_info_list) Log.log(updated_list) combined_list = FileService.get_joined_files_from_combined_directory_list( updated_list) Log.log(combined_list)
def get_codex_data(): complete_file_list = SharedDataActions.get_codex_directory_files() complete_dictionary = {} for my_file in complete_file_list: string_data = FileService.get_object_from_path(my_file) new_codex = FileService.convert_string_to_web_codex_action(string_data) new_map = new_codex.get_codex_map() list_dictionary = TextActions.convert_string_to_dictionary(new_map) #Log.log(list_dictionary) complete_dictionary.update(list_dictionary) #TextActions.print_dictionary(complete_dictionary) return complete_dictionary
def get_test_suite_directory_files(): url_path = Constants.SUITE_DIRECTORY directory_info_list = FileService.get_files_in_directory(url_path) updated_list = TextActions.append_prefix_to_string_list(url_path, directory_info_list) combined_list = FileService.get_joined_files_from_combined_directory_list(updated_list) return combined_list
def TEST_regex_fix(self): url_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Small.json" my_file = FileService.read_file_at_location(url_path) my_array = TextActions.regex_fixer(my_file) my_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Updated.json" FileService.write_file_at_location(my_path, my_array)