Skip to content

Commit

Permalink
fix: ensure all statuses are success or fail, particularly after _joi…
Browse files Browse the repository at this point in the history
…n_pivots (#329) (#370)
  • Loading branch information
ajwelch4 committed Feb 18, 2022
1 parent a9720c2 commit 310747d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data_validation/combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def generate_report(
print(documented.compile())

result_df = client.execute(documented)
result_df.status.fillna("fail", inplace=True)

return result_df

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def test_generate_report_without_group_by(
"difference": [-1.0, -1.0, _NAN, _NAN, _NAN, _NAN],
"pct_difference": [-50.0, -25.0, _NAN, _NAN, _NAN, _NAN],
"pct_threshold": [25.0, 25.0, _NAN, _NAN, _NAN, _NAN],
"status": ["fail", "success", _NAN, _NAN, _NAN, _NAN],
"status": ["fail", "success", "fail", "fail", "fail", "fail"],
"labels": [[("name", "group_label")]] * 6,
}
),
Expand Down

0 comments on commit 310747d

Please sign in to comment.