Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 9, 2024
1 parent 12f0ed0 commit 54c3a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def on_key(self, event: events.Key) -> None:

app = TestApp()
async with app.run_test() as pilot:
assert (
str(pilot)
== "<Pilot app=TestApp(title='TestApp', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'})>"
assert str(pilot) in (
"<Pilot app=TestApp(title='TestApp', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'})>",
"<Pilot app=TestApp(title='TestApp', classes={'-dark-mode'}, pseudo_classes={'focus', 'dark'})>",
)
await pilot.press("tab", *"foo")
await pilot.exit("bar")
Expand Down

0 comments on commit 54c3a2e

Please sign in to comment.