Spaces:
Runtime error
Runtime error
File size: 616 Bytes
8018595 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
"""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()
|