(self)
| 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(): |
nothing calls this directly
no test coverage detected