Files
manifoldbt/python/tests/conftest.py
T

17 lines
465 B
Python
Raw Normal View History

2026-03-17 16:13:34 +01:00
import os
import pytest
_CRATE_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
GOLDEN_ROOT = os.path.join(
_CRATE_ROOT, "..", "bt-core", "tests", "fixtures", "golden",
)
@pytest.fixture
def golden_buy_hold_dir():
"""Path to the buy_and_hold golden fixture directory."""
path = os.path.join(GOLDEN_ROOT, "buy_and_hold", "v1")
assert os.path.isdir(path), f"golden fixture dir not found: {path}"
return path