MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_patch_file_download

Method test_patch_file_download

tests/utils/test_hf_util.py:200–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 self.assertFalse(exists)
199
200 def test_patch_file_download(self):
201 with patch_context():
202 from huggingface_hub import hf_hub_download
203 local_dir = hf_hub_download(
204 'AI-ModelScope/stable-diffusion-v1-5',
205 'feature_extractor/preprocessor_config.json')
206 logger.info('patch file_download dir: ' + local_dir)
207 self.assertTrue(local_dir is not None)
208
209 def test_patch_create_repo(self):
210 with patch_context():

Callers

nothing calls this directly

Calls 2

patch_contextFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected