diff --git a/taxcalc/tests/test_calcfunctions.py b/taxcalc/tests/test_calcfunctions.py index 337a100f3..963a0d699 100644 --- a/taxcalc/tests/test_calcfunctions.py +++ b/taxcalc/tests/test_calcfunctions.py @@ -168,6 +168,9 @@ def test_function_args_usage(tests_path): raise ValueError(msg) +# pylint: disable=invalid-name + + def test_DependentCare(skip_jit): """ Tests the DependentCare function diff --git a/taxcalc/tests/test_parameters.py b/taxcalc/tests/test_parameters.py index 77c602abb..46ec67127 100644 --- a/taxcalc/tests/test_parameters.py +++ b/taxcalc/tests/test_parameters.py @@ -559,19 +559,19 @@ def test_expand_2d_partial_expand(): assert np.allclose(res, exp, atol=0.01, rtol=0.0) -taxcalc_revision = """ +TAXCALC_REVISION = """ { "consumption": {"BEN_mcaid_value": {"2013": 0.9}} } """ -paramtools_revision = """ +PARAMTOOLS_REVISION = """ { "consumption": {"BEN_mcaid_value": [{"year": "2013", "value": 0.9}]} } """ -paramtools_revision2 = """ +PARAMTOOLS_REVISION2 = """ { "consumption": {"BEN_mcaid_value": 0.9} } @@ -579,8 +579,8 @@ def test_expand_2d_partial_expand(): @pytest.mark.parametrize("good_revision", [ - taxcalc_revision, - paramtools_revision, + TAXCALC_REVISION, + PARAMTOOLS_REVISION, ]) def test_read_json_revision(good_revision): """ @@ -599,9 +599,9 @@ def test_read_json_revision(good_revision): @pytest.mark.parametrize("params,is_paramtools", [ - (taxcalc_revision, False), - (paramtools_revision, True), - (paramtools_revision2, True), + (TAXCALC_REVISION, False), + (PARAMTOOLS_REVISION, True), + (PARAMTOOLS_REVISION2, True), ]) def test_read_json_revision_foramts(params, is_paramtools): """ diff --git a/taxcalc/tests/test_policy.py b/taxcalc/tests/test_policy.py index 67bc9ed26..b1dedf02d 100644 --- a/taxcalc/tests/test_policy.py +++ b/taxcalc/tests/test_policy.py @@ -1416,6 +1416,9 @@ def test_multiple_cpi_swaps2(): ) +# pylint: disable=invalid-name + + def test_adj_CPI_offset_and_index_status(): """ Test changing parameter_indexing_CPI_offset and another diff --git a/taxcalc/tests/test_records.py b/taxcalc/tests/test_records.py index cb37edacb..df8d4984a 100644 --- a/taxcalc/tests/test_records.py +++ b/taxcalc/tests/test_records.py @@ -11,7 +11,7 @@ from taxcalc import GrowFactors, Policy, Records, Calculator -def test_incorrect_Records_instantiation(cps_subsample): +def test_incorrect_records_instantiation(cps_subsample): with pytest.raises(ValueError): recs = Records(data=[]) with pytest.raises(ValueError): @@ -26,7 +26,7 @@ def test_incorrect_Records_instantiation(cps_subsample): adjust_ratios=[]) -def test_correct_Records_instantiation(cps_subsample): +def test_correct_records_instantiation(cps_subsample): rec1 = Records.cps_constructor(data=cps_subsample, gfactors=None) assert rec1 assert np.all(rec1.MARS != 0)