From 264b411fc3a200fe73fc6b72f6908e7b0cbe5d3a Mon Sep 17 00:00:00 2001 From: Robin Matz Date: Sun, 15 Oct 2023 19:21:24 +0200 Subject: [PATCH] Fix atests --- Mainframe3270/keywords/read_write.py | 2 +- atest/mainframe.robot | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mainframe3270/keywords/read_write.py b/Mainframe3270/keywords/read_write.py index 2ec6d1c..ef7e23f 100644 --- a/Mainframe3270/keywords/read_write.py +++ b/Mainframe3270/keywords/read_write.py @@ -39,7 +39,7 @@ def read_all_screen(self) -> str: def find_string(self, search_string: str, ignore_case: bool = False): """Returns a list of tuples of ypos and xpos for the position where the `search_string` was found, or an empty list if it was not found. - + If `ignore_case` is set to `True`, then the search is done case-insensitively. Example: diff --git a/atest/mainframe.robot b/atest/mainframe.robot index 0cfa69b..b446c17 100644 --- a/atest/mainframe.robot +++ b/atest/mainframe.robot @@ -230,12 +230,12 @@ Test Find String Should Be Equal ${{ [(1, 10)] }} ${position} Test Find String Multiple Times - ${position} Find String IBM - Should Be Equal ${{ [(1, 46), (9, 16)] }} ${position} + ${position} Find String Welcome + Should Be Equal ${{ [(1, 10)] }} ${position} Test Find String Case-Insensitive - ${position} Find String ibm ignore_case=True - Should Be Equal ${{ [(1, 46), (9, 16)] }} ${position} + ${position} Find String Welcome ignore_case=True + Should Be Equal ${{ [(1, 10), (9, 5)] }} ${position} Test Find String Without Result ${position} Find String ${STRING_NON_EXISTENT}