feat: refactor falcon for psi_detector_base class; adapted eiger; added and debugged tests

This commit is contained in:
2023-11-16 22:52:45 +01:00
parent 90cd05e68e
commit bcc3210761
5 changed files with 319 additions and 419 deletions

View File

@ -114,6 +114,15 @@ def test_initialize_detector(
assert mock_det.cam.trigger_mode.get() == trigger_source
def test_trigger(mock_det):
"""Test the trigger function:
Validate that trigger calls the custom_prepare.on_trigger() function
"""
with mock.patch.object(mock_det.custom_prepare, "on_trigger") as mock_on_trigger:
mock_det.trigger()
mock_on_trigger.assert_called_once()
@pytest.mark.parametrize(
"readout_time, expected_value",
[