Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jul 10, 2023
1 parent 1b8e9ed commit a940db7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,24 @@ def test_read_hardware_for_ispyb_updates_from_ophyd_devices(
fake_fgs_composite.s4_slit_gaps.xgap.user_readback.sim_put(xgap_test_value)
fake_fgs_composite.s4_slit_gaps.ygap.user_readback.sim_put(ygap_test_value)

flux_test_value = 10.0
fake_fgs_composite.flux.flux_reading.sim_put(flux_test_value)

test_ispyb_callback = FGSISPyBHandlerCallback(test_fgs_params)
test_ispyb_callback.ispyb = MagicMock()
RE.subscribe(test_ispyb_callback)

def standalone_read_hardware_for_ispyb(und, syn, slits):
def standalone_read_hardware_for_ispyb(und, syn, slits, fl):
yield from bps.open_run()
yield from read_hardware_for_ispyb(und, syn, slits)
yield from read_hardware_for_ispyb(und, syn, slits, fl)
yield from bps.close_run()

RE(
standalone_read_hardware_for_ispyb(
fake_fgs_composite.undulator,
fake_fgs_composite.synchrotron,
fake_fgs_composite.s4_slit_gaps,
fake_fgs_composite.flux,
)
)
params = test_ispyb_callback.params
Expand Down

0 comments on commit a940db7

Please sign in to comment.