@@ -70,22 +70,18 @@ def _cpi_protected_uc_award_monthly(
7070
7171
7272@pytest .mark .parametrize ("age_2025" , [20 , 30 ])
73- def test_existing_claimants_keep_combined_award_cpi_protected (
74- monkeypatch , age_2025
75- ):
73+ def test_existing_claimants_keep_combined_award_cpi_protected (monkeypatch , age_2025 ):
7674 _force_uc_seed (monkeypatch , [0.99 ])
7775 sim = Simulation (situation = _uc_claimant (age_2025 ))
7876 claimant_type = "SINGLE_YOUNG" if age_2025 < 25 else "SINGLE_OLD"
7977
8078 for year in range (2026 , 2030 ):
8179 standard_allowance = sim .calculate ("uc_standard_allowance" , year )[0 ] / 12
8280 health_element = sim .calculate ("uc_LCWRA_element" , year )[0 ] / 12
83- new_claimant_health_element = (
84- float (
85- sim .tax_benefit_system .parameters (
86- str (year )
87- ).gov .dwp .universal_credit .rebalancing .new_claimant_health_element
88- )
81+ new_claimant_health_element = float (
82+ sim .tax_benefit_system .parameters (
83+ str (year )
84+ ).gov .dwp .universal_credit .rebalancing .new_claimant_health_element
8985 )
9086
9187 assert health_element > new_claimant_health_element
@@ -100,12 +96,10 @@ def test_new_claimants_use_fixed_health_element(monkeypatch):
10096
10197 for year in range (2026 , 2030 ):
10298 health_element = sim .calculate ("uc_LCWRA_element" , year )[0 ] / 12
103- expected_health = (
104- float (
105- sim .tax_benefit_system .parameters (
106- str (year )
107- ).gov .dwp .universal_credit .rebalancing .new_claimant_health_element
108- )
99+ expected_health = float (
100+ sim .tax_benefit_system .parameters (
101+ str (year )
102+ ).gov .dwp .universal_credit .rebalancing .new_claimant_health_element
109103 )
110104
111105 assert health_element == pytest .approx (expected_health )
0 commit comments