From a7dd02db1a9a9f5b8d6f68f42cf434f6b04dde03 Mon Sep 17 00:00:00 2001 From: appel_c Date: Mon, 15 Jun 2026 14:40:05 +0200 Subject: [PATCH] fix(pilatus): fix test for on destroy --- tests/tests_devices/test_pilatus.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/tests_devices/test_pilatus.py b/tests/tests_devices/test_pilatus.py index 3c0bac2..2f1bb01 100644 --- a/tests/tests_devices/test_pilatus.py +++ b/tests/tests_devices/test_pilatus.py @@ -116,10 +116,8 @@ def test_pilatus_on_stop(pilatus): def test_pilatus_on_destroy(pilatus): """Test the on_destroy logic of the Pilatus detector.""" - with mock.patch.object(pilatus, "on_stop") as mock_on_stop: - pilatus.destroy() - assert mock_on_stop.call_count == 1 - assert pilatus._poll_thread_kill_event.is_set() + pilatus.destroy() + assert pilatus._poll_thread_kill_event.is_set() def test_pilatus_on_failure_callback(pilatus): -- 2.54.0