HDF writeing is correctly tested

This commit is contained in:
2026-03-20 10:13:10 +01:00
parent 511dbbdc37
commit 888112f9ea
2 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ class TestADCResult(unittest.TestCase):
# read back data with h5dump utility (apt-get -y install hdf5-tools)
h5dump = subprocess.run(["h5dump", "-d", "/name/adc_data", "test.hdf5"], capture_output=True)
content = h5dump.stdout.decode("utf-8")
with open("h5dump1_adc_data.ascii", "r") as f:
with open("tests/h5dump1_adc_data.ascii", "r") as f:
expected = f.read()
self.assertEqual(content, expected)
os.unlink("test.hdf5")