From bf6ab16ef00f9f95b45d147594596f94a9617ab6 Mon Sep 17 00:00:00 2001 From: appel_c Date: Thu, 11 Sep 2025 07:46:49 +0200 Subject: [PATCH] fix(mcs-card): fix mcs card test for on_connected --- tests/tests_devices/test_mcs_card.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/tests_devices/test_mcs_card.py b/tests/tests_devices/test_mcs_card.py index 19447c3..034a80a 100644 --- a/tests/tests_devices/test_mcs_card.py +++ b/tests/tests_devices/test_mcs_card.py @@ -96,11 +96,9 @@ def test_mcs_card_csaxs_on_connected(mock_mcs_csaxs): assert mcs.read_mode.get() == READMODE.PASSIVE assert mcs.acquire_mode.get() == ACQUIREMODE.MCS - with mock.patch.object(mcs.current_channel, "subscribe") as mock_cur_ch_subscribe: - with mock.patch.object(mcs.counters.mca1, "subscribe") as mock_mca_subscribe: - mcs.on_connected() - assert mock_cur_ch_subscribe.call_args == mock.call(mcs._progress_update, run=False) - assert mock_mca_subscribe.call_args == mock.call(mcs._on_counter_update, run=False) + with mock.patch.object(mcs.counters.mca1, "subscribe") as mock_mca_subscribe: + mcs.on_connected() + assert mock_mca_subscribe.call_args == mock.call(mcs._on_counter_update, run=False) def test_mcs_card_csaxs_stage(mock_mcs_csaxs):