fix(pilatus): fix test for on destroy #85
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user