Skip to content

Commit

Permalink
Fix bug in terminal call
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Apr 23, 2024
1 parent 71c36b0 commit b403c84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_flat_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def test_2023_tax_expenditures():
2023, reweight=test_mode == "full"
)

flat_file_2023 = flat_file_2021.s006 * get_population_growth(2023, 2021)
flat_file_2023.s006 = flat_file_2021.s006 * get_population_growth(
2023, 2021
)

tc_folder = (
FOLDER.parent
Expand All @@ -122,7 +124,7 @@ def test_2023_tax_expenditures():

# cd into taxcalculator and run bash ./runs.sh pe23 23. That produces a file called pe23-23.res.actual. Print it out.

subprocess.run(["./runs.sh", "pe23", "23"], cwd=tc_folder)
subprocess.run(["./runs.sh", "pe23", "23"], cwd=tc_folder.resolve())

with open(tc_folder / "pe23-23.res-actual") as f:
data = f.read().splitlines()
Expand Down

0 comments on commit b403c84

Please sign in to comment.