Skip to content

Commit

Permalink
ignore software_NeXuS/program@version value in log test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Nov 29, 2024
1 parent ed83734 commit ea00bfe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
)
def test_ellips_reader(nxdl, reader_name, files_or_dir, tmp_path, caplog):
"Generic test from pynxtools."
# test plugin reader
# This ignores the software_TYPE/@version attribute
ignore_sections: Dict[str, List[str]] = {
"===== ATTRS (//entry/instrument/software_NeXuS/program@version)": [
"DEBUG - value:"
],
}

test = ReaderTest(nxdl, reader_name, files_or_dir, tmp_path, caplog)
test.convert_to_nexus(caplog_level="ERROR", ignore_undocumented=True)
test.check_reproducibility_of_nexus()
test.check_reproducibility_of_nexus(ignore_sections=ignore_sections)

0 comments on commit ea00bfe

Please sign in to comment.