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

Method test_clone_repo

tests/hub/test_hub_repository.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 logger.warning(f'Failed to delete model {self.model_id}: {e}')
52
53 def test_clone_repo(self):
54 Repository(self.model_dir, clone_from=self.model_id)
55 assert os.path.exists(os.path.join(self.model_dir, ModelFile.README))
56
57 def test_clone_public_model_without_token(self):
58 delete_credential()

Callers

nothing calls this directly

Calls 2

RepositoryClass · 0.90
existsMethod · 0.45

Tested by

no test coverage detected