Skip to content
Closed
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/opt30-test-binary-drift.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mark the opt30 rebate-timing test xfail while NBER clarifies a taxsim-latest behavior change (VA 2021 rebate no longer booked in the eligible year under opt 30; taxsim #1089); keep asserting the flag plumbing.
13 changes: 13 additions & 0 deletions tests/test_taxsim_opt30.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io

import pandas as pd
import pytest
from click.testing import CliRunner

from policyengine_taxsim.cli import cli
Expand All @@ -36,6 +37,18 @@ def _run_compare(tmp_path, extra_args):
return result.output, taxsim, pe


def test_opt30_flag_reaches_binary(tmp_path):
"""--taxsim-opt30 must set opt(30)=1 on the TAXSIM run."""
output, _, _ = _run_compare(tmp_path, ["--taxsim-opt30"])
assert "opt(30)=1" in output


@pytest.mark.xfail(
reason="taxsim-latest stopped booking the VA 2021 rebate in the eligible "
"year under opt(30) around 2026-07-08 (now siitax=2568.05, srebate=0); "
"awaiting NBER clarification in taxsim #1089",
strict=False,
)
def test_opt30_aligns_rebate_timing(tmp_path):
"""With --taxsim-opt30 the binary books VA's 2021-liability rebate in
2021 (like PolicyEngine), so the two engines agree exactly."""
Expand Down
Loading