diff --git a/policyengine/tests/economic_impact/budgetary_impact/by_program/test_by_program.py b/policyengine/tests/economic_impact/budgetary_impact/by_program/test_by_program.py index 68f5792..6bb48a0 100644 --- a/policyengine/tests/economic_impact/budgetary_impact/by_program/test_by_program.py +++ b/policyengine/tests/economic_impact/budgetary_impact/by_program/test_by_program.py @@ -3,7 +3,7 @@ import os from policyengine import EconomicImpact -def assert_dict_approx_equal(actual, expected, tolerance=1e-4): +def assert_dict_approx_equal(actual, expected, tolerance=1e3): for key in expected: assert abs(actual[key] - expected[key]) < tolerance, f"Key {key}: expected {expected[key]}, got {actual[key]}" diff --git a/policyengine/tests/economic_impact/budgetary_impact/overall/test_overall.py b/policyengine/tests/economic_impact/budgetary_impact/overall/test_overall.py index a5dc5d4..6c13d4c 100644 --- a/policyengine/tests/economic_impact/budgetary_impact/overall/test_overall.py +++ b/policyengine/tests/economic_impact/budgetary_impact/overall/test_overall.py @@ -3,7 +3,7 @@ import os from policyengine import EconomicImpact -def assert_dict_approx_equal(actual, expected, tolerance=1e-4): +def assert_dict_approx_equal(actual, expected, tolerance=1e3): for key in expected: assert abs(actual[key] - expected[key]) < tolerance, f"Key {key}: expected {expected[key]}, got {actual[key]}" diff --git a/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_age/test_deep_by_age.py b/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_age/test_deep_by_age.py index 6691741..2dc34f0 100644 --- a/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_age/test_deep_by_age.py +++ b/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_age/test_deep_by_age.py @@ -3,7 +3,7 @@ import os from policyengine import EconomicImpact -def assert_dict_approx_equal(actual, expected, tolerance=1e3): +def assert_dict_approx_equal(actual, expected, tolerance=1e-4): for key in expected: assert abs(actual[key] - expected[key]) < tolerance, f"Key {key}: expected {expected[key]}, got {actual[key]}" diff --git a/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_gender/test_deep_by_gender.py b/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_gender/test_deep_by_gender.py index 6691741..2dc34f0 100644 --- a/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_gender/test_deep_by_gender.py +++ b/policyengine/tests/economic_impact/poverty_impact/deep_poverty/by_gender/test_deep_by_gender.py @@ -3,7 +3,7 @@ import os from policyengine import EconomicImpact -def assert_dict_approx_equal(actual, expected, tolerance=1e3): +def assert_dict_approx_equal(actual, expected, tolerance=1e-4): for key in expected: assert abs(actual[key] - expected[key]) < tolerance, f"Key {key}: expected {expected[key]}, got {actual[key]}"