def setUp(self): os.chdir(CURRENT_DIR) self.test_name = os.path.basename(CURRENT_DIR) self.test_info = load_test_info(self.test_name) self.coll_name = self.test_info['coll_names'][0] self.conn_src = self.test_info['conn_src'] self.conn_dest = self.test_info['conn_dest'] self.db_src = self.test_info['db_src'] self.db_dest = self.test_info['db_dest'] self.coll_src = self.db_src[self.coll_name] self.coll_dest = self.db_dest[self.coll_name] remove_res(self.test_info['temp_res']) setup_dataset( coll=self.coll_src, dataset_file=os.path.join(CURRENT_DIR, 'data.json') ) print_msg('Setting up progress file') with open('current_progress.yaml', 'w') as output: output.write("{}: 555317f7d290053143db668b\n".format( self.coll_name ))
def setUp(self): os.chdir(CURRENT_DIR) self.test_name = os.path.basename(CURRENT_DIR) self.test_info = load_test_info(self.test_name) self.coll_name = self.test_info['coll_names'][0] self.conn_src = self.test_info['conn_src'] self.db_src = self.test_info['db_src'] self.db_dest = self.test_info['db_dest'] self.coll_src = self.db_src[self.coll_name] remove_res(self.test_info['temp_res']) setup_dataset(coll=self.coll_src, dataset_file=os.path.join(CURRENT_DIR, 'data.json'))
def setUp(self): os.chdir(CURRENT_DIR) self.test_name = os.path.basename(CURRENT_DIR) self.test_info = load_test_info(self.test_name) self.coll_name = self.test_info["coll_names"][0] self.conn_src = self.test_info["conn_src"] self.conn_dest = self.test_info["conn_dest"] self.db_src = self.test_info["db_src"] self.db_dest = self.test_info["db_dest"] self.coll_src = self.db_src[self.coll_name] self.coll_dest = self.db_dest[self.coll_name] remove_res(self.test_info["temp_res"]) setup_dataset(coll=self.coll_src, dataset_file=os.path.join(CURRENT_DIR, "data.json"))
def setUp(self): os.chdir(CURRENT_DIR) self.test_name = os.path.basename(CURRENT_DIR) self.test_info = load_test_info(self.test_name) self.coll_name = self.test_info['coll_names'][0] self.conn_src = self.test_info['conn_src'] self.db_src = self.test_info['db_src'] self.db_dest = self.test_info['db_dest'] self.coll_src = self.db_src[self.coll_name] remove_res(self.test_info['temp_res']) setup_dataset( coll=self.coll_src, dataset_file=os.path.join(CURRENT_DIR, 'data.json') )
def setUp(self): os.chdir(CURRENT_DIR) self.test_name = os.path.basename(CURRENT_DIR) self.test_info = load_test_info(self.test_name) self.coll_name = self.test_info['coll_names'][0] self.conn_src = self.test_info['conn_src'] self.conn_dest = self.test_info['conn_dest'] self.db_src = self.test_info['db_src'] self.db_dest = self.test_info['db_dest'] self.coll_src = self.db_src[self.coll_name] self.coll_dest = self.db_dest[self.coll_name] remove_res(self.test_info['temp_res']) setup_dataset(coll=self.coll_src, dataset_file=os.path.join(CURRENT_DIR, 'data.json')) print_msg('Setting up progress file') with open('current_progress.yaml', 'w') as output: output.write("{}: 555317f7d290053143db668b\n".format( self.coll_name))