aboutsummaryrefslogtreecommitdiffstats
path: root/pylog/tests/test_log_watchdog.py
diff options
context:
space:
mode:
authorEli Halych <illia.halych@t-mobile.pl>2020-09-02 13:10:35 +0000
committerEli Halych <illia.halych@t-mobile.pl>2020-09-07 08:52:24 +0000
commit7035aed700a463fd171807526475baf84c1434e7 (patch)
tree9d0e7c4c8252f431ac3e12c0f5086c1c8b625f79 /pylog/tests/test_log_watchdog.py
parent314ee85cf7c8a98dd21d5d12e4013b9f742b1012 (diff)
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 <illia.halych@t-mobile.pl> Change-Id: I19297e40fad743ec68aa04612ecbb11f61f2abec
Diffstat (limited to 'pylog/tests/test_log_watchdog.py')
-rw-r--r--pylog/tests/test_log_watchdog.py3
1 files changed, 2 insertions, 1 deletions
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"])