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

Method setUp

tests/hub/test_hub_retry.py:18–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16class HubRetryTest(unittest.TestCase):
17
18 def setUp(self):
19 self.api = HubApi()
20 self.model_id = 'damo/ofa_text-to-image-synthesis_coco_large_en'
21
22 @patch('urllib3.connectionpool.HTTPConnectionPool._get_conn')
23 def test_retry_exception(self, getconn_mock):

Callers

nothing calls this directly

Calls 1

HubApiClass · 0.90

Tested by

no test coverage detected