Skip to content
Snippets Groups Projects
Commit 53a038ff authored by Mattia Mancini's avatar Mattia Mancini
Browse files

SW-43: add test to check if the ATTRIBUTES are supported in reading and storing files

parent 043d13c4
No related branches found
No related tags found
1 merge request!44Merge back holography to master
...@@ -35,7 +35,7 @@ class TestHolographyDatasetClass(unittest.TestCase): ...@@ -35,7 +35,7 @@ class TestHolographyDatasetClass(unittest.TestCase):
self.assertEqual(holography_dataset.source_name, '3C 147') self.assertEqual(holography_dataset.source_name, '3C 147')
def test_store_and_read_from_hdf(self): def test_store_and_read_from_hdf(self):
test_dict = dict(CS001=dict(BEAM0=1, BEAM1=2, BEAM3=dict(FR1='str2')), CS003='str') test_dict = dict(CS001=dict(BEAM0=1, BEAM1=2, BEAM3=dict(FR1='str2'), ATTRIBUTES=dict(a=1)), CS003='str')
with tempfile.NamedTemporaryFile(suffix='.hdf5') as tfile: with tempfile.NamedTemporaryFile(suffix='.hdf5') as tfile:
tfile.close() tfile.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment