Skip to content

Commit ec94956

Browse files
fix: clean up whitespace and improve readability in log validation utility
1 parent 64f3c61 commit ec94956

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/validation/common/log_validation_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ def check_phrases_anywhere(
235235
"""
236236
missing_phrases = []
237237
lines_around_missing = {}
238-
238+
239239
try:
240240
with open(log_path, "r", encoding="utf-8", errors="ignore") as f:
241241
content = f.read()
242-
lines = content.split('\n')
242+
lines = content.split("\n")
243243

244244
for phrase in phrases:
245245
if phrase not in content:
@@ -252,9 +252,10 @@ def check_phrases_anywhere(
252252
except Exception as e:
253253
logger.error(f"Error reading log file {log_path}: {e}")
254254
return False, phrases, {"error": [f"Error reading log file: {e}"]}
255-
255+
256256
return len(missing_phrases) == 0, missing_phrases, lines_around_missing
257257

258+
258259
def output_validator(
259260
log_file_path: str, error_keywords: Optional[List[str]] = None
260261
) -> Dict[str, Any]:

0 commit comments

Comments
 (0)