From 3839640336b0e7c66c3907df7a870594fcafdafc Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 23 Sep 2024 10:14:48 +0200 Subject: [PATCH] chore: raise when specifying invalid direction --- src/emulator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emulator.py b/src/emulator.py index a01be7b..ec2fe81 100644 --- a/src/emulator.py +++ b/src/emulator.py @@ -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: