Skip to content

Commit

Permalink
Make test more readable
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 717440673
  • Loading branch information
The TensorFlow Datasets Authors committed Jan 20, 2025
1 parent cb1ae5a commit ded5e83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def test_download_and_prepare(crs_builder, expected_entries, split_name):
expected_entries = [
entry for entry in expected_entries if entry["split"] == split_name
]
assert len(data_source) == len(expected_entries) == 1
assert len(data_source) == 1
assert len(data_source) == 1
for entry, expected_entry in zip(data_source, expected_entries):
assert entry["index"] == expected_entry["index"]
assert entry["text"].decode() == expected_entry["text"]

0 comments on commit ded5e83

Please sign in to comment.