test(classifier): ✅ add test on n2 patterns
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user