♻️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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user