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

Method test_CachedDatasetModuleFactory

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

Source from the content-addressed store, hash-verified

674
675 @pytest.mark.integration
676 def test_CachedDatasetModuleFactory(self):
677 name = SAMPLE_DATASET_IDENTIFIER2
678 load_dataset_builder(name, cache_dir=self.cache_dir).download_and_prepare()
679 for offline_mode in OfflineSimulationMode:
680 with offline(offline_mode):
681 factory = CachedDatasetModuleFactory(
682 name,
683 cache_dir=self.cache_dir,
684 )
685 module_factory_result = factory.get_module()
686 assert importlib.import_module(module_factory_result.module_path) is not None
687
688
689@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

get_moduleMethod · 0.95
load_dataset_builderFunction · 0.90
offlineFunction · 0.85
download_and_prepareMethod · 0.45

Tested by

no test coverage detected