mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-23 11:27:57 +02:00
test: fix test_send_data_to_bec
This commit is contained in:
@ -182,7 +182,7 @@ def test_send_data_to_bec(mock_det, metadata, mca_data):
|
||||
mock_det.scaninfo.scanID = metadata["scanID"]
|
||||
mock_det.custom_prepare.mca_data = mca_data
|
||||
mock_det.custom_prepare._send_data_to_bec()
|
||||
device_metadata = metadata["scanID"]
|
||||
device_metadata = mock_det.scaninfo.scan_msg.metadata
|
||||
metadata.update({"async_update": "append", "num_lines": mock_det.num_lines.get()})
|
||||
data = messages.DeviceMessage(signals=dict(mca_data), metadata=device_metadata).dumps()
|
||||
calls = mock.call(
|
||||
@ -193,7 +193,7 @@ def test_send_data_to_bec(mock_det, metadata, mca_data):
|
||||
expire=1800,
|
||||
)
|
||||
|
||||
# assert mock_det.producer.xadd.call_args == calls
|
||||
assert mock_det.producer.xadd.call_args == calls
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Reference in New Issue
Block a user