Skip to content

Commit

Permalink
Adaptation again
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Jan 25, 2024
1 parent 062e51a commit f7f6790
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions openfisca_survey_manager/tests/test_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from openfisca_survey_manager.scenarios.abstract_scenario import AbstractSurveyScenario
from openfisca_survey_manager.tests import tax_benefit_system


def test_calibration_variable_entity_is_weight_entity():
survey_scenario = create_randomly_initialized_survey_scenario(collection=None)
period = "2017-01"
Expand Down Expand Up @@ -95,13 +96,7 @@ def test_simulation_calibration_input_from_data():
"person": "person_weight",
"household": "household_weight",
}
if reform is None:
survey_scenario.set_tax_benefit_systems(dict(baseline = tax_benefit_system))
else:
survey_scenario.set_tax_benefit_systems(dict(
reform = reform(tax_benefit_system),
baseline = tax_benefit_system,
))
survey_scenario.set_tax_benefit_systems(dict(baseline = tax_benefit_system))
survey_scenario.period = 2017
survey_scenario.used_as_input_variables = ['salary', 'rent', 'household_weight']
period = periods.period('2017-01')
Expand Down

0 comments on commit f7f6790

Please sign in to comment.