Skip to content

Commit

Permalink
Fix pylint R1736 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Jan 3, 2025
1 parent 36c86ff commit 2253d9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions taxcalc/tests/test_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def test_order_of_indexing_and_level_reforms():
make no difference to the post-reform policy parameter values.
"""
# specify two reforms that raises the MTE and stops its indexing in 2015
reform = [
reforms = [
{
'SS_Earnings_c': {2015: 500000},
'SS_Earnings_c-indexed': {2015: False}
Expand All @@ -576,17 +576,17 @@ def test_order_of_indexing_and_level_reforms():
ppo = [Policy(), Policy()]
# apply reforms to corresponding Policy object & check post-reform values
syr = Policy.JSON_START_YEAR
for ref, _ in enumerate(reform):
for idx, reform in enumerate(reforms):
# confirm pre-reform MTE values in 2014-2017
mte = ppo[ref]._SS_Earnings_c
mte = ppo[idx]._SS_Earnings_c
assert mte[2014 - syr] == 117000
assert mte[2015 - syr] == 118500
assert mte[2016 - syr] == 118500
assert mte[2017 - syr] < 500000
# implement reform in 2015
ppo[ref].implement_reform(reform[ref])
ppo[idx].implement_reform(reform)
# confirm post-reform MTE values in 2014-2017
mte = ppo[ref]._SS_Earnings_c
mte = ppo[idx]._SS_Earnings_c
assert mte[2014 - syr] == 117000
assert mte[2015 - syr] == 500000
assert mte[2016 - syr] == 500000
Expand Down

0 comments on commit 2253d9b

Please sign in to comment.