fix clan-pytest build

This commit is contained in:
Jörg Thalheim
2023-09-27 16:18:52 +02:00
parent e970dcb658
commit 59f0a912ea

View File

@@ -4,17 +4,17 @@ from pathlib import Path
import pytest import pytest
TEST_ROOT = Path(__file__).parent.resolve() TEST_ROOT = Path(__file__).parent.resolve()
PROJECT_ROOT = TEST_ROOT.parent.parent.parent PROJECT_ROOT = TEST_ROOT.parent
if CLAN_CORE_ := os.environ.get("CLAN_CORE"): if CLAN_CORE_ := os.environ.get("CLAN_CORE"):
CLAN_CORE = Path(CLAN_CORE_) CLAN_CORE = Path(CLAN_CORE_)
else: else:
CLAN_CORE = PROJECT_ROOT CLAN_CORE = PROJECT_ROOT.parent.parent
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def project_root() -> Path: def project_root() -> Path:
""" """
Root directory the clan-core Root directory the clan-cli
""" """
return PROJECT_ROOT return PROJECT_ROOT