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

Method test_who_am_i

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

Source from the content-addressed store, hash-verified

232 file_exists(self.create_model_name, 'test_folder2/2.json'))
233
234 def test_who_am_i(self):
235 with patch_context():
236 from huggingface_hub import whoami
237 self.assertTrue(whoami()['name'] == self.user)
238
239 def test_automapping_download(self):
240 from modelscope import AutoConfig

Callers

nothing calls this directly

Calls 1

patch_contextFunction · 0.90

Tested by

no test coverage detected