mirror of
https://github.com/nix-community/nix-direnv.git
synced 2024-10-26 11:33:04 +03:00
23 lines
351 B
Python
23 lines
351 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
TEST_ROOT = Path(__file__).parent.resolve()
|
|
PROJECT_ROOT = TEST_ROOT.parent
|
|
|
|
|
|
@pytest.fixture()
|
|
def test_root() -> Path:
|
|
"""
|
|
Root directory of the tests
|
|
"""
|
|
return TEST_ROOT
|
|
|
|
|
|
@pytest.fixture()
|
|
def project_root() -> Path:
|
|
"""
|
|
Root directory of the tests
|
|
"""
|
|
return PROJECT_ROOT
|