Skip to content

Commit

Permalink
Update tests/fgpyo/util/test_metric.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
msto and coderabbitai[bot] authored Oct 17, 2024
1 parent ff85357 commit ff744df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/fgpyo/util/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,11 +864,7 @@ def test_assert_file_header_matches_metric(tmp_path: Path, data_and_classes: Dat
with metric_path.open("w") as metrics_file:
metrics_file.write("name\tage\n")

try:
_assert_file_header_matches_metric(metric_path, data_and_classes.Person, delimiter="\t")
except Exception:
raise AssertionError("File header should be valid") from None

_assert_file_header_matches_metric(metric_path, data_and_classes.Person, delimiter="\t")

@pytest.mark.parametrize("data_and_classes", (attr_data_and_classes, dataclasses_data_and_classes))
@pytest.mark.parametrize(
Expand Down

0 comments on commit ff744df

Please sign in to comment.