diff --git a/ceurws/volume_neo4j.py b/ceurws/volume_neo4j.py index cbd0476..04d543e 100644 --- a/ceurws/volume_neo4j.py +++ b/ceurws/volume_neo4j.py @@ -8,6 +8,7 @@ from typing import Optional import requests +from ceurws.ceur_ws import CEURWS from neo4j import GraphDatabase from neo4j.exceptions import AuthError, ConfigurationError, ServiceUnavailable @@ -140,7 +141,7 @@ def default_source(cls) -> str: """ get the default source """ - default_source = os.path.expanduser("~/.ceurws/volumes.json") + default_source = CEURWS.CACHE_DIR / "volumes.json" return default_source @classmethod diff --git a/tests/test_loctime.py b/tests/test_loctime.py index 7e53882..3a17c16 100644 --- a/tests/test_loctime.py +++ b/tests/test_loctime.py @@ -7,6 +7,8 @@ import json from pathlib import Path +from ceurws.ceur_ws import CEURWS + from ceurws.loctime import LoctimeParser, PercentageTable from tests.basetest import Basetest @@ -21,7 +23,7 @@ def setUp(self, debug=False, profile=True): setUp the test case """ Basetest.setUp(self, debug=debug, profile=profile) - self.ceurws_path = Path.home() / ".ceurws" + self.ceurws_path = CEURWS.CACHE_DIR self.volumes_path = self.ceurws_path / "volumes.json" self.volumes = self.get_volumes() self.loctime_parser = LoctimeParser()