Skip to content

Commit

Permalink
fix: tests (match id instead of table object)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 14, 2024
1 parent 8157560 commit d3e420a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ui/test_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def test_sort_cancelled():
await pilot.press(*list("abcd"))
await pilot.press("escape")

current_options = [node.prompt for node in tree._options]
current_options = [node.id for node in tree._options]

api.start_sort()
await pilot.pause()
Expand All @@ -148,7 +148,7 @@ async def test_sort_cancelled():
current_bar = app.bar_switcher.visible_content
assert isinstance(current_bar, StatusBar)

new_options = [node.prompt for node in tree._options]
new_options = [node.id for node in tree._options]
assert current_options == new_options


Expand Down

0 comments on commit d3e420a

Please sign in to comment.