2023-08-08 14:28:38 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
TEST_ROOT = Path(__file__).parent.resolve()
|
|
|
|
PROJECT_ROOT = TEST_ROOT.parent
|
|
|
|
|
|
|
|
|
2023-08-09 14:38:08 +00:00
|
|
|
@pytest.fixture(scope="session")
|
2023-08-08 14:28:38 +00:00
|
|
|
def project_root() -> Path:
|
|
|
|
"""
|
|
|
|
Root directory of the tests
|
|
|
|
"""
|
|
|
|
return PROJECT_ROOT
|
|
|
|
|
|
|
|
|
2023-08-09 14:38:08 +00:00
|
|
|
@pytest.fixture(scope="session")
|
2023-08-08 14:28:38 +00:00
|
|
|
def test_root() -> Path:
|
|
|
|
"""
|
|
|
|
Root directory of the tests
|
|
|
|
"""
|
|
|
|
return TEST_ROOT
|