Skip to content

Commit

Permalink
Test parent format class can understand
Browse files Browse the repository at this point in the history
  • Loading branch information
rjgildea committed Mar 30, 2021
1 parent 7b93c57 commit 198a8f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/format/test_FormatNexusEigerDLS16M.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from scitbx.array_family import flex

from dxtbx.format.FormatNexusEigerDLS import FormatNexusEigerDLS
from dxtbx.format.FormatNexusEigerDLS16M import FormatNexusEigerDLS16M
from dxtbx.masking import SmarGonShadowMasker
from dxtbx.model.experiment_list import ExperimentListFactory
Expand Down Expand Up @@ -206,6 +207,7 @@ def test_understand(beamline, tmp_path):
)
name.attrs["short_name"] = np.string_(f"DLS {beamline}")
assert FormatNexusEigerDLS16M.understand(nxs)
assert FormatNexusEigerDLS.understand(nxs)


@pytest.mark.parametrize("beamline", ["I03", "I04"])
Expand All @@ -219,6 +221,7 @@ def test_understand_legacy(beamline, tmp_path):
name = instrument.create_dataset("name", data=np.string_(f"{beamline}"))
name.attrs["short_name"] = np.string_(f"{beamline}")
assert FormatNexusEigerDLS16M.understand(nxs)
assert FormatNexusEigerDLS.understand(nxs)


def test_do_not_understand_name_none(tmp_path):
Expand Down

0 comments on commit 198a8f4

Please sign in to comment.