✅test(reporter): add tests for reporter module

add tests, reformat code, add an output variable in writing function. All reading and writing functions must read in windows-1252 encoding because original logs are windows-1252 encoded
This commit is contained in:
2026-08-27 17:34:22 +02:00
parent b83ee451a3
commit 9c06222f37
6 changed files with 379 additions and 88 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ def test_classify_log_entries_none_relevant(valid_log_dir: Path):
"""
Must return an empty relevant log entry list
"""
log_file = valid_log_dir / "no_relevant_error.txt"
log_file = valid_log_dir / "no_relevant_logs.txt"
log_entries = parse_log_file(log_file)
# all entries are relevant