Commit 911b2732de27310ed28d16a621c44f06badf2ca0

Authored by Christian Herdtweck
1 parent e073ff5a

Update imports for log_helper in tests

tests/common/log_helper/log_helper_test_imported.py
@@ -3,7 +3,7 @@ Dummy file that logs messages, meant to be imported @@ -3,7 +3,7 @@ Dummy file that logs messages, meant to be imported
3 by the main test file 3 by the main test file
4 """ 4 """
5 5
6 -from oletools.util.log_helper import log_helper 6 +from oletools.common.log_helper import log_helper
7 import logging 7 import logging
8 8
9 DEBUG_MESSAGE = 'imported: debug log' 9 DEBUG_MESSAGE = 'imported: debug log'
tests/common/log_helper/log_helper_test_main.py
1 """ Test log_helpers """ 1 """ Test log_helpers """
2 2
3 import sys 3 import sys
4 -from tests.util.log_helper import log_helper_test_imported  
5 -from oletools.util.log_helper import log_helper 4 +from tests.common.log_helper import log_helper_test_imported
  5 +from oletools.common.log_helper import log_helper
6 6
7 DEBUG_MESSAGE = 'main: debug log' 7 DEBUG_MESSAGE = 'main: debug log'
8 INFO_MESSAGE = 'main: info log' 8 INFO_MESSAGE = 'main: info log'
tests/common/log_helper/test_log_helper.py
@@ -9,8 +9,8 @@ import unittest @@ -9,8 +9,8 @@ import unittest
9 import sys 9 import sys
10 import json 10 import json
11 import subprocess 11 import subprocess
12 -from tests.util.log_helper import log_helper_test_main  
13 -from tests.util.log_helper import log_helper_test_imported 12 +from tests.common.log_helper import log_helper_test_main
  13 +from tests.common.log_helper import log_helper_test_imported
14 from os.path import dirname, join, relpath, abspath 14 from os.path import dirname, join, relpath, abspath
15 15
16 # this is the common base of "tests" and "oletools" dirs 16 # this is the common base of "tests" and "oletools" dirs