fix(pilatus): fix test for on destroy #85

Merged
appel_c merged 1 commits from fix-on-destroy-pilatus-test into main 2026-06-15 15:54:00 +02:00
+2 -4
View File
@@ -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):