We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c0d69 commit 22e234cCopy full SHA for 22e234c
tests/country/test_us.py
@@ -21,3 +21,23 @@ def test_us_macro_comparison():
21
)
22
23
sim.calculate_economy_comparison()
24
+
25
+def test_us_macro_cliff_impacts():
26
+ from policyengine import Simulation
27
28
+ sim = Simulation(
29
+ scope="macro",
30
+ country="us",
31
+ reform={
32
+ "gov.usda.snap.income.deductions.earned_income": {"2025": 0.05}
33
+ },
34
+ include_cliffs=True
35
+ )
36
37
+ result = sim.calculate_economy_comparison()
38
+ cliff_impact = result.model_dump().get('cliff_impact')
39
40
+ assert cliff_impact is not None, "Expected 'cliff_impact' to be present in the output."
41
42
+ assert cliff_impact["baseline"]["cliff_gap"] > 0
43
+ assert cliff_impact["reform"]["cliff_share"] > 0
0 commit comments