Skip to content

Commit

Permalink
Remove PUF/CPS test since PUF not used for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kcreekdev committed Apr 13, 2024
1 parent de2d5e6 commit 0078127
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions cs-config/cs_config/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@
}


def test_start_year_with_data_source():
"""
Test interaction between PUF and CPS data sources and the start year.
"""
data = functions.get_inputs({"data_source": "PUF"})
assert data["meta_parameters"]["year"]["validators"]["choice"]["choices"][0] == 2013
data = functions.get_inputs({"data_source": "CPS"})
assert data["meta_parameters"]["year"]["validators"]["choice"]["choices"][0] == 2014

ew = {
"policy": {"errors": {}, "warnings": {}},
"behavior": {"errors": {}, "warnings": {}},
}
res = functions.validate_inputs(
{"data_source": "CPS", "year": 2013}, {"policy": {}, "behavior": {}}, ew
)
assert res["errors_warnings"]["policy"]["errors"].get("year")
# def test_start_year_with_data_source():
# """
# Test interaction between PUF and CPS data sources and the start year.
# """
# data = functions.get_inputs({"data_source": "PUF"})
# assert data["meta_parameters"]["year"]["validators"]["choice"]["choices"][0] == 2013
# data = functions.get_inputs({"data_source": "CPS"})
# assert data["meta_parameters"]["year"]["validators"]["choice"]["choices"][0] == 2014

# ew = {
# "policy": {"errors": {}, "warnings": {}},
# "behavior": {"errors": {}, "warnings": {}},
# }
# res = functions.validate_inputs(
# {"data_source": "CPS", "year": 2013}, {"policy": {}, "behavior": {}}, ew
# )
# assert res["errors_warnings"]["policy"]["errors"].get("year")


class TestFunctions1(CoreTestFunctions):
Expand Down

0 comments on commit 0078127

Please sign in to comment.