Commit 54a425e8 authored by Alexander Lercher's avatar Alexander Lercher

Fixed relative path for test

parent cdfe4fc0
......@@ -4,7 +4,7 @@ import importlib.util
import pathlib
ROOT = pathlib.Path(__file__).parent.parent.absolute()
TESTS_FOLDER_NAME = "/tests"
TESTS_FOLDER_NAME = os.path.normpath("/tests")
print("\nSearching for tests at the path: "+ str(ROOT))
......@@ -14,7 +14,7 @@ for (dirname, dirs, files) in os.walk(ROOT):
#I assume all the tests are placed in a folder named "tests"
if (TESTS_FOLDER_NAME in str(dirname)) \
and not(f"{TESTS_FOLDER_NAME}/" in str(dirname)) \
and not(f"{TESTS_FOLDER_NAME}{os.path.normpath('/')}" in str(dirname)) \
and not("venv" in str(dirname)):
try:
print(f"Executing tests in {dirname}")
......
import yaml
from typing import Generator
from pathlib import Path
### init logging ###
import logging
......@@ -8,11 +9,12 @@ LOG_FORMAT = (
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
LOGGER = logging.getLogger(__name__)
PROJECT_ROOT = Path(__file__).parent.parent.parent
class ClusteringConfig:
'''Contains the configuration for the clustering algorithm defined in configs/clustering.yaml.'''
config_path = 'configs/clustering.yaml'
config_path = f'{PROJECT_ROOT}/configs/clustering.yaml'
config: dict = None
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment