Skip to content

Commit

Permalink
Fix test to account for the fact that TreeNodeSelected now sends befo…
Browse files Browse the repository at this point in the history
…re TreeNodeExpanded
  • Loading branch information
darrenburns committed Jul 15, 2024
1 parent 03e4c17 commit 581994e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tree/test_tree_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ async def test_tree_node_selected_message() -> None:
await pilot.press("enter")
await pilot.pause()
assert pilot.app.messages == [
("NodeExpanded", "test-tree"),
("NodeSelected", "test-tree"),
("NodeExpanded", "test-tree"),
]


Expand Down Expand Up @@ -151,8 +151,8 @@ async def test_tree_node_highlighted_message() -> None:
await pilot.press("enter", "down")
await pilot.pause()
assert pilot.app.messages == [
("NodeExpanded", "test-tree"),
("NodeSelected", "test-tree"),
("NodeExpanded", "test-tree"),
("NodeHighlighted", "test-tree"),
]

Expand Down

0 comments on commit 581994e

Please sign in to comment.