def test_writer_cleanup_deletes_hdfs_dir(con, hdfs, alltypes_df): writer = DataFrameWriter(con, alltypes_df) path = writer.write_temp_csv() assert hdfs.exists(path) writer.cleanup() assert not hdfs.exists(path) # noop writer.cleanup() assert not hdfs.exists(path)
def test_writer_cleanup_deletes_hdfs_dir(con, hdfs, alltypes_df): writer = DataFrameWriter(con, alltypes_df) path = writer.write_temp_csv() assert hdfs.exists(path) writer.cleanup() assert not hdfs.exists(path) # noop writer.cleanup() assert not hdfs.exists(path)
def test_writer_cleanup_deletes_hdfs_dir(self): writer = DataFrameWriter(self.con, self.alltypes) path = writer.write_temp_csv() assert self.con.hdfs.exists(path) writer.cleanup() assert not self.con.hdfs.exists(path) # noop writer.cleanup() assert not self.con.hdfs.exists(path)
def test_writer_cleanup_deletes_hdfs_dir(self): writer = DataFrameWriter(self.con, self.alltypes) path = writer.write_temp_csv() assert self.con.hdfs.exists(path) writer.cleanup() assert not self.con.hdfs.exists(path) # noop writer.cleanup() assert not self.con.hdfs.exists(path)