Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/head-to-head-scorer-requires-us.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The head-to-head scorer tests that load real H5 fixtures now carry the `requires_us` marker, so a no-extras sync (`uv sync --all-packages`) skips them instead of failing on the `policyengine_us` import inside `release._load_frame`.
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def test_scored_column_contract_refuses_silently_missing_columns() -> None:
)


@pytest.mark.requires_us
def test_incumbent_and_candidate_h5_loaders_preserve_scored_contract(
tmp_path: Path,
) -> None:
Expand Down Expand Up @@ -538,6 +539,7 @@ def test_incumbent_and_candidate_h5_loaders_preserve_scored_contract(
)


@pytest.mark.requires_us
def test_historical_formula_owned_h5_scores_with_drop_receipt(
monkeypatch,
tmp_path: Path,
Expand Down Expand Up @@ -575,6 +577,7 @@ def test_historical_formula_owned_h5_scores_with_drop_receipt(
assert "`person`: `has_marketplace_health_coverage`" in markdown


@pytest.mark.requires_us
def test_historical_formula_owned_h5_refuses_missing_leaf(tmp_path: Path) -> None:
pytest.importorskip("tables")
module = _load_head_to_head_module()
Expand All @@ -598,6 +601,7 @@ def test_historical_formula_owned_h5_refuses_missing_leaf(tmp_path: Path) -> Non
assert "required input leaves are absent" in message


@pytest.mark.requires_us
def test_clean_historical_h5_scores_with_empty_drop_receipt(
monkeypatch,
tmp_path: Path,
Expand Down
Loading