Skip to content

Commit

Permalink
Set both names and IDs in mlc's test fixtures.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 679138358
  • Loading branch information
marcenacp authored and The TensorFlow Datasets Authors committed Sep 26, 2024
1 parent 9b128bf commit 3b6b04e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tensorflow_datasets/testing/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ def dummy_croissant_file(

fields = [
mlc.Field(
id='index',
name='index',
description='The sample index.',
data_types=mlc.DataType.INTEGER,
Expand All @@ -745,6 +746,7 @@ def dummy_croissant_file(
),
),
mlc.Field(
id='text',
name='text',
description='The dummy sample text.',
data_types=mlc.DataType.TEXT,
Expand All @@ -758,6 +760,7 @@ def dummy_croissant_file(
record_sets = [
mlc.RecordSet(
id='jsonl',
name='jsonl',
description='Dummy record set.',
fields=fields,
)
Expand All @@ -778,6 +781,7 @@ def dummy_croissant_file(
distribution = [
mlc.FileObject(
id='raw_data',
name='raw_data',
description='File with the data.',
encoding_format='application/jsonlines',
content_url=f'data/{raw_data_filename}',
Expand Down

0 comments on commit 3b6b04e

Please sign in to comment.