32 lines
554 B
Python
32 lines
554 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
TEST_ROOT = Path(__file__).parent.resolve()
|
|
PROJECT_ROOT = TEST_ROOT.parent
|
|
CLAN_CORE = PROJECT_ROOT.parent.parent
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def project_root() -> Path:
|
|
"""
|
|
Root directory the clan-cli
|
|
"""
|
|
return PROJECT_ROOT
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def test_root() -> Path:
|
|
"""
|
|
Root directory of the tests
|
|
"""
|
|
return TEST_ROOT
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def clan_core() -> Path:
|
|
"""
|
|
Directory of the clan-core flake
|
|
"""
|
|
return CLAN_CORE
|