Skip to content

Commit

Permalink
Add test on yaml runner on tbs cache with neutralized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sandcha committed Jun 8, 2021
1 parent 1bd796e commit e765ec0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/core/tools/test_runner/test_yaml_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ def test_extensions_order():
assert xy_tax_benefit_system == yx_tax_benefit_system # extensions order is ignored in cache


def test_tax_benefit_systems_with_neutralized_variables():
baseline = TaxBenefitSystem()

re_tax_benefit_system = _get_tax_benefit_system(baseline, 'r', ['e'], [])
ren_tax_benefit_system = _get_tax_benefit_system(baseline, 'r', ['e'], ['n'])
n_tax_benefit_system = _get_tax_benefit_system(baseline, [], [], ['n'])
assert re_tax_benefit_system != ren_tax_benefit_system
assert ren_tax_benefit_system != n_tax_benefit_system


def test_performance_graph_option_output():
test = {'input': {'salary': {'2017-01': 2000}}, 'output': {'salary': {'2017-01': 2000}}}
test_item = TestItem(test)
Expand Down

0 comments on commit e765ec0

Please sign in to comment.