From 99c84174e00fb659fc8158dc80686337198961f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20Kl=C3=A4rck?= Date: Wed, 5 Feb 2025 12:46:52 +0200 Subject: [PATCH] format --- robotstatuschecker.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/robotstatuschecker.py b/robotstatuschecker.py index 33bb73f..0964385 100755 --- a/robotstatuschecker.py +++ b/robotstatuschecker.py @@ -110,8 +110,9 @@ def _split_status_and_logs(self, doc: str) -> "tuple[str, str]": if "LOG" not in doc: return doc, "" log_index = doc.find("LOG") - status_indices = [doc.find(status) for status in ("FAIL", "SKIP", "PASS") - if status in doc] + status_indices = [ + doc.find(status) for status in ("FAIL", "SKIP", "PASS") if status in doc + ] if not status_indices or log_index < min(status_indices): return "", doc return doc[:log_index], doc[log_index:] @@ -165,7 +166,7 @@ def _message_matches(self, actual: str, expected: str) -> bool: if actual == expected: return True if expected.startswith("REGEXP:"): - pattern = expected.replace('REGEXP:', '', 1).strip() + pattern = expected.replace("REGEXP:", "", 1).strip() if re.fullmatch(pattern, actual, re.DOTALL): return True if expected.startswith("GLOB:"):