"""Pytest configuration and shared fixtures.""" import os import pytest @pytest.fixture def canrisk_pedigree_fixture() -> str: """Load the CanRisk pedigree fixture file. Returns: str: CanRisk v3 pedigree example content used by tests. The fixture represents a 42-year-old Ashkenazi woman with BRCA1+BRCA2 mutations and family history, expected to yield ~25.2% 10-year breast cancer risk. """ fixture_path = os.path.join( os.path.dirname(__file__), "fixtures", "canrisk_pedigree_example.txt" ) with open(fixture_path) as f: return f.read().strip()