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__,