♻️refactor(project): adapt to new naming of parsing methods

adapt to new naming of parsing methods, remove unused paths in parser module, all module import logwatcher.config instead of importing logwatcher, rename test functions
This commit is contained in:
2026-09-10 10:13:12 +02:00
parent cf83a06cfe
commit c5466a4171
10 changed files with 59 additions and 71 deletions
+12 -4
View File
@@ -57,7 +57,7 @@ def test_parse_line(specific_logs: list[str]):
assert log_entry.raw_line != ""
def test_parse_empty_log_line():
def test_parse_empty_line():
"""
An empty or structurally invalid line returns None.
Covered cases:
@@ -71,7 +71,15 @@ def test_parse_empty_log_line():
assert not log_entry
def test_parse_valid_log_file(original_log_dir: Path):
def test_parse_lines():
pass
def test_parse_empty_lines():
pass
def test_parse_valid_file(original_log_dir: Path):
"""
Each real log file produces at least one valid LogEntry.
Integration test: files provided by technicians contain
@@ -86,7 +94,7 @@ def test_parse_valid_log_file(original_log_dir: Path):
assert isinstance(log_entry, LogEntry)
def test_parse_empty_log_file(empty_log_file):
def test_parse_empty_file(empty_log_file):
"""
An empty log file can be parsed and must returns an
empty LogEntry list.
@@ -95,7 +103,7 @@ def test_parse_empty_log_file(empty_log_file):
assert len(log_list) == 0
def test_parse_bad_log_file(bad_log_file):
def test_parse_bad_file(bad_log_file):
"""
A file containing only invalid lines produces nothing.
Any line that does not match the LAME MDC structure