From f7f679010af5d965b9d8d8b4a10a6a732ef2eda3 Mon Sep 17 00:00:00 2001 From: Duchesne Sylvain Date: Thu, 25 Jan 2024 15:54:12 +0100 Subject: [PATCH] Adaptation again --- openfisca_survey_manager/tests/test_calibration.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/openfisca_survey_manager/tests/test_calibration.py b/openfisca_survey_manager/tests/test_calibration.py index 033c71f3..3fe6595c 100644 --- a/openfisca_survey_manager/tests/test_calibration.py +++ b/openfisca_survey_manager/tests/test_calibration.py @@ -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" @@ -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')