fix(bec-processed-signal): fix read on processed signal, will force a read on linked signal now

This commit is contained in:
2026-05-28 17:20:47 +02:00
parent 5faaa92046
commit ee950baf5c
2 changed files with 22 additions and 0 deletions
+9
View File
@@ -2,6 +2,8 @@
# pylint: disable=redefined-outer-name
from unittest import mock
import pytest
from bec_server.device_server.tests.utils import DMMock
from ophyd import Component as Cpt
@@ -121,6 +123,13 @@ def test_processed_signal_describe_metadata(processed_signal_from_device_manager
assert "samy.readback" in info["method_inputs"]
def test_processed_signal_forces_read(processed_signal_from_device_manager, samx):
"""Test that get() forces read of all input signals."""
with mock.patch.object(samx.readback, "read") as mock_read:
processed_signal_from_device_manager.read()
mock_read.assert_called_once()
def test_processed_signal_model_rejects_missing_required_inputs():
"""Test compute model validation when required kwargs are missing."""