Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Oct 24, 2024
1 parent fe0dc8c commit 6e611f2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/beamlines/unit_tests/test_p38.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@ def test_devices_diff_when_in_lab():
assert saxs.__class__ == NXSasOAV, f"Expected NXSasOav, got {saxs.__class__}"


# todo fix the following tests
# FAILED tests/beamlines/unit_tests/test_i03.py::test_list - KeyError: "No beamline parameter path found, maybe 'BEAMLINE' environment variable is not set!"
# FAILED tests/beamlines/unit_tests/test_p38.py::test_devices_diff_when_in_lab - AssertionError: Expected NXSasOav, got <class 'dodal.devices.i22.nxsas.NXSasPilatus'>
# assert <class 'dodal.devices.i22.nxsas.NXSasPilatus'> == NXSasOAV
# + where <class 'dodal.devices.i22.nxsas.NXSasPilatus'> = <dodal.devices.i22.nxsas.NXSasPilatus object at 0x7f016ca5b340>.__class__


@pytest.mark.parametrize("module_and_devices_for_beamline", ["p38"], indirect=True)
@pytest.mark.parametrize("module_and_devices_for_beamline", ["i22"], indirect=True)
def test_device_creation(RE, module_and_devices_for_beamline):
_, devices = module_and_devices_for_beamline
saxs: NXSasOAV = devices["saxs"] # type: ignore
saxs = devices["saxs"] # type: ignore

print(saxs)
assert saxs.drv.trigger_mode.name == "BL22I-DI-DICAM-03:DET:TriggerMode"

0 comments on commit 6e611f2

Please sign in to comment.