Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Sep 7, 2021
1 parent f15c081 commit 11b3815
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions openfisca_survey_manager/tests/test_scenario_csv.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
# -*- coding: utf-8 -*-


import logging
import os
import pandas as pd
import pkg_resources

from openfisca_core.model_api import * # noqa analysis:ignore
from openfisca_core import periods
from openfisca_survey_manager.input_dataframe_generator import (
make_input_dataframe_by_entity,
random_data_generator,
randomly_init_variable,
)
from openfisca_country_template import CountryTaxBenefitSystem
from openfisca_survey_manager.tests.test_scenario import generate_input_input_dataframe_by_entity
from openfisca_survey_manager.scenarios import AbstractSurveyScenario
Expand Down Expand Up @@ -57,7 +49,7 @@ def test_survey_scenario_csv_import():
}
survey_scenario.init_from_data(data = data)
simulation = survey_scenario.simulation
error = 1e-03
error = 2e-03
assert (
(simulation.calculate('salary', period) - input_data_frame_by_entity['person']['salary']).abs()
< error).all()
Expand All @@ -70,4 +62,4 @@ def test_survey_scenario_csv_import():
import sys
log = logging.getLogger(__name__)
logging.basicConfig(level = logging.DEBUG, stream = sys.stdout)
test_survey_scenario_csv_import()
test_survey_scenario_csv_import()

0 comments on commit 11b3815

Please sign in to comment.