Skip to content

Commit

Permalink
Fix variable names when reading in TCJA extra known values
Browse files Browse the repository at this point in the history
  • Loading branch information
hdoupe committed Oct 29, 2021
1 parent 330cf38 commit 2a94d6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions taxcalc/tests/test_reforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ def test_round_trip_reforms(fyear, tests_path):
assert not rtr_pol.parameter_warnings
assert not rtr_pol.errors

# Add TCJA known values
tcja_known_2017_file = os.path.join(
tests_path, 'TCJA_known_from_2017.json'
)
with open(tcja_known_2017_file, 'r') as tcja_known_f:
tcja_extra_text = tcja_known_f.read()
rtr_pol.implement_reform(Policy.read_json_reform(tcja_known_2017_file))
with open(tcja_known_2017_file, 'r') as tcja_known_2017_f:
tcja_known_2017_text = tcja_known_2017_f.read()
rtr_pol.implement_reform(Policy.read_json_reform(tcja_known_2017_text))
assert not rtr_pol.parameter_warnings
assert not rtr_pol.errors

Expand Down

0 comments on commit 2a94d6d

Please sign in to comment.