Skip to content

Commit

Permalink
chore: raise when specifying invalid direction
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj committed Sep 23, 2024
1 parent dede67e commit 3839640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ def swipe(direction: str) -> None:
debug.swipe_down()
elif direction == "left":
debug.swipe_left()
else:
raise ValueError(f"Unknown direction: {direction}")


def assert_text_on_screen(debug: DebugLink, text: str) -> None:
Expand Down

0 comments on commit 3839640

Please sign in to comment.