def main(): sqlcreate.create_tables_and_initialize_root() bootstrapper = FolderPathsBootStrapper() print 'bootstrapper.print_folder_id_to_dirname_dict()' bootstrapper.print_folder_id_to_dirname_dict() print 'bootstrapper.print_all_folder_paths()' bootstrapper.print_all_folder_paths() print 'bootstrapper.all_id_path_list_list =',bootstrapper.all_id_path_list_list dbproxy = dbact.DBProxyFetcher() print 'dbproxy.get_all_folder_id_to_name_2Dtuples_list()' print dbproxy.get_all_folder_id_to_name_2Dtuples_list()
def test1(): dbcreat.create_tables_and_initialize_root() dbcreat.delete_all_data_except_root() filler = TestDataFiller() file_data_dict = { "filepath": "/abc/test_dir/file1.txt", "sha1hex": sha1hexes[0], "filesize": 1000, "modified_datetime": modified_datetimes[0], } filler.insert_file_n_get_file_id(file_data_dict) pass
def test2(): dbcreat.create_tables_and_initialize_root() dbcreator = dbcreat.DBTablesCreator() dbcreator.delete_all_data_except_root() filler = TestDataFiller() filler.insert_data_into_db()