Skip to content

Commit

Permalink
Fix path in data dict test
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jan 18, 2024
1 parent fc4b034 commit 57a3900
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/dataconverter/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@ def test_validate_data_dict(
)
def test_path_in_data_dict(nxdl_path, expected, template):
"""Unit test for helper function to check if an NXDL path exists in the reader dictionary."""
assert helpers.path_in_data_dict(nxdl_path, template) == expected
assert (
helpers.path_in_data_dict(
nxdl_path, helpers.convert_data_dict_path_to_hdf5_path(nxdl_path), template
)
== expected
)


def test_atom_type_extractor_and_hill_conversion():
Expand Down

0 comments on commit 57a3900

Please sign in to comment.