Skip to content

Commit

Permalink
Update AssertInputContainsString.py
Browse files Browse the repository at this point in the history
fix assert_result value setting
  • Loading branch information
jgstew committed Jul 17, 2023
1 parent 074b85a commit 9272ac1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SharedProcessors/AssertInputContainsString.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ def main(self):

try:
assert assert_string in input_string
self.env["assert_result"] = "found!"
except AssertionError:
self.env["assert_result"] = "ERROR: not found!"
self.output(f"ERROR: `{assert_string}` not found in `{input_string}`!", 0)
if raise_error:
raise

self.env["assert_result"] = "found!"


if __name__ == "__main__":
PROCESSOR = AssertInputContainsString()
Expand Down

0 comments on commit 9272ac1

Please sign in to comment.