Files
manifoldbt/python/tests/conftest.py
T
Jimmy7892 67ab17280b Initial commit: manifoldbt public repo
Python DSL, examples, docs, benchmarks, and tests.
Rust engine distributed as pre-compiled wheel via PyPI.
2026-03-17 16:15:40 +01:00

17 lines
465 B
Python

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