Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Jan 10, 2025
1 parent 56f444e commit 281f954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/TangoDataWriterH5Cpp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, methodName):
<group type="NXinstrument" name="instrument">
<attribute name ="short_name"> scan instrument </attribute>
<group type="NXdetector" name="detector">
<field units="m" type="NX_FLOAT" name="counter1">
<field units="µm" type="NX_FLOAT" name="counter1">
<strategy mode="STEP"/>
<datasource type="CLIENT">
<record name="exp_c01"/>
Expand Down Expand Up @@ -1749,7 +1749,7 @@ def test_scanRecord_nexuspath(self):

if os.path.isfile(fname):
os.remove(fname)
# pass
# pass

# scanRecord test
# \brief It tests recording of simple h5 file
Expand Down
6 changes: 3 additions & 3 deletions test/TangoDataWriterH5PY_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, methodName):
<group type="NXinstrument" name="instrument">
<attribute name ="short_name"> scan instrument </attribute>
<group type="NXdetector" name="detector">
<field units="m" type="NX_FLOAT" name="counter1">
<field units="µm" type="NX_FLOAT" name="counter1">
<strategy mode="STEP"/>
<datasource type="CLIENT">
<record name="exp_c01"/>
Expand Down Expand Up @@ -1681,7 +1681,7 @@ def test_scanRecord_nexuspath(self):
self.assertEqual(at.shape, ())
self.assertEqual(at.dtype, "string")
self.assertEqual(at.name, "units")
self.assertEqual(at[...], "m")
self.assertEqual(at[...], "µm")

at = cnt.attributes["nexdatas_source"]
self.assertTrue(at.is_valid)
Expand Down Expand Up @@ -1747,7 +1747,7 @@ def test_scanRecord_nexuspath(self):

if os.path.isfile(fname):
os.remove(fname)
# pass
# pass

# scanRecord test
# \brief It tests recording of simple h5 file
Expand Down

0 comments on commit 281f954

Please sign in to comment.