Skip to content

Commit

Permalink
Remove failure test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
  • Loading branch information
ryantwolf committed May 3, 2024
1 parent 0fdf3f8 commit 203e9e6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,13 +826,3 @@ def test_fake_langid_filter(self):
assert all_equal(
expected_data, filtered_data
), f"Expected {expected_data} but got {filtered_data}"

def test_fake_langid_failure(self):
with pytest.raises(TypeError):
dataset = list_to_dataset(["a", "b", "c", "d"], npartitions=1)
filters = ScoreFilter(FakeLangId(convert_string=True))
filtered_data = filters(dataset)

expected_indices = [0, 1, 3]
expected_data = DocumentDataset(dataset.df.loc[expected_indices])
all_equal(expected_data, filtered_data)

0 comments on commit 203e9e6

Please sign in to comment.