mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
edit paths and descriptor tests
This commit is contained in:
parent
1f6c2cba3e
commit
bf6777d095
|
|
@ -18,10 +18,9 @@ import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
logging.debug("- %s loaded", __name__)
|
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/"
|
LOG_PATH = ROOT_PATH + "/log/"
|
||||||
CONFIG_PATH = ROOT_PATH + "/config/"
|
CONFIG_PATH = ROOT_PATH + "/config/"
|
||||||
CSV_PATH = ROOT_PATH + "/csv/"
|
CSV_PATH = ROOT_PATH + "/csv/"
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,7 @@ from boswatch.descriptor import descriptor
|
||||||
|
|
||||||
|
|
||||||
class Test_Descriptor:
|
class Test_Descriptor:
|
||||||
"""!Unittests for the descriptor
|
"""!Unittests for the descriptor"""
|
||||||
|
|
||||||
@todo Error because path's in paths.py are false when start over pytest"""
|
|
||||||
|
|
||||||
def test_loadCSVnotExist(self):
|
def test_loadCSVnotExist(self):
|
||||||
"""!read CSV file where not exist"""
|
"""!read CSV file where not exist"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue