MCPcopy
hub / github.com/huggingface/datasets / test_dataset_info_dump_and_reload

Function test_dataset_info_dump_and_reload

tests/test_info.py:52–57  ·  view source on GitHub ↗
(tmp_path, dataset_info: DatasetInfo)

Source from the content-addressed store, hash-verified

50 ],
51)
52def test_dataset_info_dump_and_reload(tmp_path, dataset_info: DatasetInfo):
53 tmp_path = str(tmp_path)
54 dataset_info.write_to_directory(tmp_path)
55 reloaded = DatasetInfo.from_directory(tmp_path)
56 assert dataset_info == reloaded
57 assert os.path.exists(os.path.join(tmp_path, "dataset_info.json"))
58
59
60def test_dataset_info_to_yaml_dict():

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
write_to_directoryMethod · 0.45
from_directoryMethod · 0.45

Tested by

no test coverage detected