def test_1(): """ Test IncomeTaxIO constructor with no policy reform. """ taxyear = 2020 inctax = IncomeTaxIO(input_filename=FAUX_PUF_CSV, tax_year=taxyear, reform_filename=None, blowup_input_data=False) assert inctax.tax_year() == taxyear
def test_1(rawinputfile): # pylint: disable=redefined-outer-name """ Test IncomeTaxIO constructor with no policy reform and no blowup. """ IncomeTaxIO.show_iovar_definitions() taxyear = 2021 inctax = IncomeTaxIO(input_data=rawinputfile.name, tax_year=taxyear, policy_reform=None, blowup_input_data=False) assert inctax.tax_year() == taxyear
def test_2(): """ Test IncomeTaxIO calculate method with no output writing. """ taxyear = 2020 inctax = IncomeTaxIO(input_filename=FAUX_PUF_CSV, tax_year=taxyear, reform_filename=None, blowup_input_data=False) inctax.calculate(write_output_file=False) assert inctax.tax_year() == taxyear
def test_1(rawinputfile): # pylint: disable=redefined-outer-name """ Test IncomeTaxIO constructor with no policy reform and no blowup. """ IncomeTaxIO.show_iovar_definitions() taxyear = 2021 inctax = IncomeTaxIO(input_data=rawinputfile.name, tax_year=taxyear, policy_reform=None, blowup_input_data=True) assert inctax.tax_year() == taxyear
def test_5(rawinputfile): # pylint: disable=redefined-outer-name """ Test IncomeTaxIO calculate method with no output writing and no blowup and no reform, using the output_records option. """ taxyear = 2021 inctax = IncomeTaxIO(input_data=rawinputfile.name, tax_year=taxyear, policy_reform=None, blowup_input_data=False, output_records=True) inctax.output_records(writing_output_file=False) assert inctax.tax_year() == taxyear
def test_5(rawinputfile): # pylint: disable=redefined-outer-name """ Test IncomeTaxIO calculate method with no output writing and no blowup and no reform, using the output_records option. """ taxyear = 2021 inctax = IncomeTaxIO(input_data=rawinputfile.name, tax_year=taxyear, policy_reform=None, blowup_input_data=False, output_records=True) inctax.output_records(writing_output_file=False) assert inctax.tax_year() == taxyear
def test_creation_with_blowup(rawinputfile, blowup, weights_out): """ Test IncomeTaxIO instantiation with no policy reform and with blowup. """ # for fixture args, pylint: disable=redefined-outer-name IncomeTaxIO.show_iovar_definitions() taxyear = 2021 inctax = IncomeTaxIO(input_data=rawinputfile.name, tax_year=taxyear, policy_reform=None, exact_calculations=False, blowup_input_data=blowup, output_weights=weights_out, output_records=False, csv_dump=False) assert inctax.tax_year() == taxyear