Skip to content

Commit

Permalink
Add test for score values (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbowen-usds committed Sep 2, 2022
1 parent 98a02c4 commit 0d919fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/data-pipeline/data_pipeline/tests/score/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,7 @@ def test_output_tracts(final_score_df, national_tract_df):
counts = df.value_counts("MERGE")
assert counts.loc["left_only"] == 0
assert counts.loc["right_only"] == 0


def test_all_tracts_have_scores(final_score_df):
assert not final_score_df[field_names.SCORE_N_COMMUNITIES].isna().any()

0 comments on commit 0d919fd

Please sign in to comment.