From bf6777d0951cc210e0c8aa2762d2ddb15e8117dd Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sun, 7 Jan 2018 23:02:04 +0100 Subject: [PATCH] edit paths and descriptor tests --- boswatch/utils/paths.py | 3 +-- test/test_descriptor.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/boswatch/utils/paths.py b/boswatch/utils/paths.py index 08e54cb..4824af5 100644 --- a/boswatch/utils/paths.py +++ b/boswatch/utils/paths.py @@ -18,10 +18,9 @@ import logging import os import sys - logging.debug("- %s loaded", __name__) -ROOT_PATH = os.path.dirname(sys.modules['__main__'].__file__) +ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\boswatch", "").replace("\\", "/") LOG_PATH = ROOT_PATH + "/log/" CONFIG_PATH = ROOT_PATH + "/config/" CSV_PATH = ROOT_PATH + "/csv/" diff --git a/test/test_descriptor.py b/test/test_descriptor.py index b805bc1..e279e58 100644 --- a/test/test_descriptor.py +++ b/test/test_descriptor.py @@ -22,9 +22,7 @@ from boswatch.descriptor import descriptor class Test_Descriptor: - """!Unittests for the descriptor - - @todo Error because path's in paths.py are false when start over pytest""" + """!Unittests for the descriptor""" def test_loadCSVnotExist(self): """!read CSV file where not exist"""