Skip to content

Commit

Permalink
mv test of read/rewrite into mt_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Jan 27, 2024
1 parent aa824dc commit c360d37
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/io/test_issue_139.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,17 @@ def test_tf_obj_from_zrr(self):
).all()
return tf

def test_tf_read_and_write(self):
"""Checks that an ingested z-file is written back out the same"""
import filecmp

tf_z = self._tf_z_obj
out_file_name = str(self.zrr_file_base).replace(".zrr", "_rewrite.zrr")
out_file_path = pathlib.Path(out_file_name)
tf_z.write(out_file_path)
assert filecmp.cmp(self.zrr_file_base, out_file_path)
print("Add assert statement that the zrr are the same")
# An equivalent to this test in in mt_metadata on fix_issue_190
# def test_tf_read_and_write(self):
# """Checks that an ingested z-file is written back out the same"""
# import filecmp
#
# tf_z = self._tf_z_obj
# out_file_name = str(self.zrr_file_base).replace(".zrr", "_rewrite.zrr")
# out_file_path = pathlib.Path(out_file_name)
# tf_z.write(out_file_path)
# assert filecmp.cmp(self.zrr_file_base, out_file_path)
# print("Add assert statement that the zrr are the same")


def main():
Expand Down

0 comments on commit c360d37

Please sign in to comment.