Skip to content
Snippets Groups Projects
Commit 9bf2e094 authored by Sören Henning's avatar Sören Henning
Browse files

Add 'true'/'false' operators that ignore threshold

parent 2a164fc9
No related branches found
No related tags found
No related merge requests found
Pipeline #14161 passed
......@@ -59,6 +59,10 @@ def check_result(result, operator: str, threshold):
return result > threshold
if operator == 'gte':
return result >= threshold
if operator == 'true':
return True # Mainly used for testing
if operator == 'false':
return False # Mainly used for testing
else:
raise ValueError('Invalid operator string.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment