Skip to content

Commit

Permalink
Revise test to include RECID in dump output variable list
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Jul 24, 2024
1 parent 4e167ba commit f272eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions taxcalc/taxcalcio.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ def write_output_file(self, output_dump, dump_varset,
)
column_order = sorted(outdf.columns)
# place RECID at start of column_order list
if 'RECID' in column_order:
column_order.remove('RECID')
assert 'RECID' in column_order, 'RECID not in dump output list'
column_order.remove('RECID')
column_order.insert(0, 'RECID')
else:
outdf = self.minimal_output()
Expand Down
2 changes: 1 addition & 1 deletion taxcalc/tests/test_taxcalcio.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def test_output_options(reformfile1, assumpfile1):
# --dump output with partial dump
try:
tcio.analyze(writing_output_file=True,
dump_varset=set(['combined']),
dump_varset=set(['RECID', 'combined']),
output_dump=True)
except Exception: # pylint: disable=broad-except
if os.path.isfile(outfilepath):
Expand Down

0 comments on commit f272eee

Please sign in to comment.