mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Test that the control of selection list events is always correct
This commit is contained in:
@@ -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__,
|
||||
|
||||
Reference in New Issue
Block a user