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

Method test_HubDatasetModuleFactory

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

Source from the content-addressed store, hash-verified

512
513 @pytest.mark.integration
514 def test_HubDatasetModuleFactory(self):
515 factory = HubDatasetModuleFactory(
516 SAMPLE_DATASET_IDENTIFIER2, commit_hash=SAMPLE_DATASET_COMMIT_HASH2, download_config=self.download_config
517 )
518 module_factory_result = factory.get_module()
519 assert importlib.import_module(module_factory_result.module_path) is not None
520 assert module_factory_result.builder_kwargs["base_path"].startswith("hf://")
521
522 @pytest.mark.integration
523 def test_HubDatasetModuleFactory_with_data_dir(self):

Callers

nothing calls this directly

Calls 2

get_moduleMethod · 0.95

Tested by

no test coverage detected