From 9a085d802e548c44e08a0b5e65d2d45b20cea34d 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 | 10 +++------- 2 files changed, 4 insertions(+), 8 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..138b018 100644 --- a/atest/mainframe.robot +++ b/atest/mainframe.robot @@ -226,16 +226,12 @@ Test Send PF Page Should Contain String Function key not allowed. Test Find String - ${position} Find String ${WELCOME} + ${position} Find String Welcome Should Be Equal ${{ [(1, 10)] }} ${position} -Test Find String Multiple Times - ${position} Find String IBM - Should Be Equal ${{ [(1, 46), (9, 16)] }} ${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}