From cb05cfff53bbf7e255ab979ca1e628f0cbfe3f47 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 24 May 2023 10:21:40 +0100 Subject: [PATCH] Test that the control of selection list events is always correct --- tests/selection_list/test_selection_messages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/selection_list/test_selection_messages.py b/tests/selection_list/test_selection_messages.py index ea31c6ead..2659f70ae 100644 --- a/tests/selection_list/test_selection_messages.py +++ b/tests/selection_list/test_selection_messages.py @@ -30,6 +30,7 @@ class SelectionListApp(App[None]): @on(SelectionList.SelectionToggled) @on(SelectionList.SelectedChanged) def _record(self, event: Message) -> None: + assert event.control == self.query_one(SelectionList) self.messages.append( ( event.__class__.__name__,