diff --git a/src/ragger/backend/interface.py b/src/ragger/backend/interface.py index 2f374eb5..8d2688d7 100644 --- a/src/ragger/backend/interface.py +++ b/src/ragger/backend/interface.py @@ -502,7 +502,7 @@ def compare_screen_with_text(self, text: str) -> bool: @abstractmethod def wait_for_text_on_screen(self, text: str, timeout: float = 10.0) -> None: """ - Wait until the screen content contains the text string provider. + Wait until the screen content contains the text string provided. This method may be left void on backends connecting to physical devices, where a physical interaction must be performed instead. @@ -525,7 +525,7 @@ def wait_for_text_on_screen(self, text: str, timeout: float = 10.0) -> None: @abstractmethod def wait_for_text_not_on_screen(self, text: str, timeout: float = 10.0) -> None: """ - Wait until the screen content does not contains the text string provider. + Wait until the screen content does not contain the text string provided. This method may be left void on backends connecting to physical devices, where a physical interaction must be performed instead. diff --git a/src/ragger/backend/speculos.py b/src/ragger/backend/speculos.py index 50aeba58..5e588211 100644 --- a/src/ragger/backend/speculos.py +++ b/src/ragger/backend/speculos.py @@ -380,7 +380,7 @@ def clean_args(cls: type[T], speculos_args: list) -> None: if argument in speculos_args: logger.warning("'%s' argument is ignored on batch mode", argument) index = speculos_args.index(argument) - # popipng argument and its value + # popping argument and its value speculos_args.pop(index) speculos_args.pop(index) diff --git a/src/ragger/conftest/base_conftest.py b/src/ragger/conftest/base_conftest.py index e2cb6312..699df982 100644 --- a/src/ragger/conftest/base_conftest.py +++ b/src/ragger/conftest/base_conftest.py @@ -454,7 +454,7 @@ def prepare_speculos_args( # Legacy lib method, remove once exchange is ported if len(conf.OPTIONAL.SIDELOADED_APPS) != 0: - # We are testing a a standalone app that needs libraries: search in SIDELOADED_APPS_DIR + # We are testing a standalone app that needs libraries: search in SIDELOADED_APPS_DIR if conf.OPTIONAL.SIDELOADED_APPS_DIR is None: raise ValueError('Configuration "SIDELOADED_APPS_DIR" is mandatory if "SIDELOADED_APPS" is used') libs_dir = Path(project_root_dir / conf.OPTIONAL.SIDELOADED_APPS_DIR) diff --git a/src/ragger/utils/misc.py b/src/ragger/utils/misc.py index 54828d3e..368b0967 100644 --- a/src/ragger/utils/misc.py +++ b/src/ragger/utils/misc.py @@ -196,5 +196,5 @@ def open_app_from_dashboard(backend, app_name: str): if e.status == ERROR_DENIED_BY_USER: raise ValueError("Open app consent denied by the user") from e elif e.status == ERROR_APP_NOT_FOUND: - raise ValueError(f"App '{app_name} is not present") from e + raise ValueError(f"App '{app_name}' is not present") from e raise e