Skip to content

Commit

Permalink
Fix atests
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmatz committed Oct 18, 2023
1 parent 84af833 commit 48b9270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Mainframe3270/keywords/read_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 3 additions & 7 deletions atest/mainframe.robot
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,12 @@ Test Get Cursor Position
Should Be Equal ${{ {"xpos": 27, "ypos": 6} }} ${position_as_dict}

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}
Expand Down

0 comments on commit 48b9270

Please sign in to comment.