test(classifier): ✅ add test on n2 patterns

This commit is contained in:
2026-08-07 17:27:37 +02:00
parent 19ff504890
commit 476b69d26f
8 changed files with 92 additions and 273 deletions
-10
View File
@@ -6,19 +6,9 @@ from logwatcher.config import FIXTURE_PATH
from logwatcher.models import LogEntry
from logwatcher.parser import parse_log_file, parse_log_line
ORIGINAL_LOGS_DIR = FIXTURE_PATH / "original_logs"
INVALID_LOGS_DIR = FIXTURE_PATH / "invalid_logs"
SPECIFIC_LOGS_DIR = FIXTURE_PATH / "valid_logs"
@pytest.fixture(name="original_log_files")
def original_log_files_fixture() -> tuple[Path, ...]:
"""
All real log files provided by N2 technicians.
Used for integration tests: these files contain both valid lines
and lines to be ignored (system logs, empty lines, directory headers).
"""
return tuple(ORIGINAL_LOGS_DIR.iterdir())
@pytest.fixture(name="empty_log_file")
def empty_log_file_fixture() -> Path:
"""