Skip to content

Commit

Permalink
refactoring: using better name: 'find_right_after' for 'conftest.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
lomnido committed Sep 20, 2024
1 parent 89b202b commit fdb0ac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli_ui/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def find(self, pattern: str) -> Optional[str]:
return message
return None

def find_next(self, pattern: str) -> Optional[str]:
"""Same as 'find', however finds in next message ONLY.
def find_right_after(self, pattern: str) -> Optional[str]:
"""Same as 'find', but only check the message that is right after
the one found last time. if no message was found before, the 1st
message in buffer is checked
:param pattern: regular expression pattern to use
when looking for recorded message
Expand Down

0 comments on commit fdb0ac6

Please sign in to comment.