Skip to content

Commit

Permalink
additional test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Apr 24, 2024
1 parent feec44c commit d060687
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ccc/tests/test_get_taxcalc_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ def test_get_calculator_cps():

@pytest.mark.needs_puf
@pytest.mark.parametrize(
"data", ["puf.csv", None], ids=["data=PUF", "data=None"]
"baseline,data",
[(True, "puf.csv"), (True, None), (False, None)],
ids=["baseline,data=PUF", "baseline,data=None", "reform,data=None"],
)
def test_get_calculator(data):
def test_get_calculator(baseline, data):
"""
Test the get_calculator() function
"""
calc1 = tc.get_calculator(True, 2019, data=data)
calc1 = tc.get_calculator(
baseline, 2019, baseline_policy={}, reform={}, data=data
)
assert calc1.current_year == 2019


Expand Down

0 comments on commit d060687

Please sign in to comment.