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

Method test_LocalDatasetModuleFactory

tests/test_load.py:341–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 self.download_config = DownloadConfig(cache_dir=self.cache_dir)
340
341 def test_LocalDatasetModuleFactory(self):
342 factory = LocalDatasetModuleFactory(self._data_dir)
343 module_factory_result = factory.get_module()
344 assert importlib.import_module(module_factory_result.module_path) is not None
345 assert os.path.isdir(module_factory_result.builder_kwargs["base_path"])
346
347 def test_LocalDatasetModuleFactory_with_data_dir(self):
348 factory = LocalDatasetModuleFactory(self._data_dir2, data_dir=self._sub_data_dir)

Callers

nothing calls this directly

Calls 2

get_moduleMethod · 0.95

Tested by

no test coverage detected