♻️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
+2 -1
View File
@@ -15,6 +15,7 @@ from logging import DEBUG, ERROR, INFO, WARNING, FileHandler, StreamHandler, get
import pytest
from logwatcher.config import DATETIME_FORMAT
from logwatcher.logging_config import _setup_formatter, _setup_handler, setup_logging
@@ -54,7 +55,7 @@ def test_type_of_handlers():
else:
pytest.fail("handlers must be either a file or a stream handler")
assert handler.formatter._fmt == "[%(asctime)s] - %(levelname)s: %(message)s"
assert handler.formatter.datefmt == "%d/%m/%Y %H:%M:%S"
assert handler.formatter.datefmt == DATETIME_FORMAT
def test_modified_format():