Skip to content

Commit 6be0ba5

Browse files
author
The TensorFlow Datasets Authors
committed
Add source to mlc.Field in Croissant test utils.
PiperOrigin-RevId: 813698864
1 parent b6d8afa commit 6be0ba5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorflow_datasets/core/utils/croissant_utils_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def test_get_split_recordset():
212212
mlc.Field(
213213
id='records/split',
214214
data_types=[mlc.DataType.TEXT],
215+
source=mlc.Source(field='splits/name'),
215216
references=mlc.Source(field='splits/name'),
216217
)
217218
],
@@ -258,6 +259,7 @@ def test_get_split_recordset_with_no_split_recordset():
258259
mlc.Field(
259260
id='samples/label',
260261
data_types=mlc.DataType.TEXT,
262+
source=mlc.Source(field='labels/label'),
261263
references=mlc.Source(field='labels/label'),
262264
)
263265
],

0 commit comments

Comments
 (0)