From 7035aed700a463fd171807526475baf84c1434e7 Mon Sep 17 00:00:00 2001 From: Eli Halych Date: Wed, 2 Sep 2020 13:10:35 +0000 Subject: onaplogging: Docstrings, refactor, type hinting Identify and document functionalities. Describe parameters and their types, exception descriptions and types, extensions, return types and descriptions. Preserve Python 2.7 and 3.x compatibility. Add Python 2.7 to Tox testing. Extract code to utility files. Add properties for readability and maintainability, fix naming conventions. Deprecate old methods and attributes. Issue-ID: REQ-420 Signed-off-by: Eli Halych Change-Id: I19297e40fad743ec68aa04612ecbb11f61f2abec --- pylog/tests/test_log_watchdog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pylog/tests/test_log_watchdog.py') diff --git a/pylog/tests/test_log_watchdog.py b/pylog/tests/test_log_watchdog.py index 5f43138..e1b9fea 100644 --- a/pylog/tests/test_log_watchdog.py +++ b/pylog/tests/test_log_watchdog.py @@ -22,7 +22,8 @@ if sys.version_info[0] >= 3: import pytest import yaml -from onaplogging.logWatchDog import FileEventHandlers, _yaml2Dict, _yamlConfig +from onaplogging.logWatchDog import FileEventHandlers, _yamlConfig +from onaplogging.utils.tools import yaml_to_dict, _yaml2Dict TestEvent = namedtuple("TestEvent", ["src_path"]) -- cgit 1.2.3-korg