Merge pull request 'fix clan-pytest build' (#356) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m17s
assets1 / test (push) Successful in 7s

This commit is contained in:
clan-bot 2023-09-27 14:22:11 +00:00
commit a158ab0421

View File

@ -4,17 +4,17 @@ from pathlib import Path
import pytest
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"):
CLAN_CORE = Path(CLAN_CORE_)
else:
CLAN_CORE = PROJECT_ROOT
CLAN_CORE = PROJECT_ROOT.parent.parent
@pytest.fixture(scope="session")
def project_root() -> Path:
"""
Root directory the clan-core
Root directory the clan-cli
"""
return PROJECT_ROOT