From 32228c4562c278b7463131a5a9814c7b3f8cf230 Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 29 Feb 2024 15:54:20 +0000 Subject: [PATCH] DiamondLightSource/hyperion#1192 fix some system tests --- .../external_interaction/test_zocalo_system.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/system_tests/external_interaction/test_zocalo_system.py b/tests/system_tests/external_interaction/test_zocalo_system.py index 2aaea7f95..9ba7f8047 100644 --- a/tests/system_tests/external_interaction/test_zocalo_system.py +++ b/tests/system_tests/external_interaction/test_zocalo_system.py @@ -55,11 +55,16 @@ async def test_when_running_start_stop_then_get_expected_returned_results( ): dcids = (1, 2) zc = ZocaloCallback() - zc.start({}) # TODO - for dcid in dcids: - zc.zocalo_interactor.run_start(dcid) - for dcid in dcids: - zc.zocalo_interactor.run_end(dcid) + zc.triggering_plan = "test" + zc.start( + { + "subplan_name": "test", + "uid": "123", + "zocalo_environment": "dev_artemis", + "ispyb_ids": dcids, + } # type:ignore + ) + zc.stop({"run_start": "123"}) # type:ignore RE(bps.trigger(zocalo_device, wait=True)) result = await zocalo_device.read() assert result["zocalo-results"]["value"][0] == TEST_RESULT_LARGE[0]