| 17 | class ModelUploadCMDTest(unittest.TestCase): |
| 18 | |
| 19 | def setUp(self): |
| 20 | print(('Testing %s.%s' % (type(self).__name__, self._testMethodName))) |
| 21 | self.tmp_dir = tempfile.TemporaryDirectory().name |
| 22 | if not os.path.exists(self.tmp_dir): |
| 23 | os.makedirs(self.tmp_dir) |
| 24 | print(self.tmp_dir) |
| 25 | self.api = HubApi() |
| 26 | self.api.login(TEST_ACCESS_TOKEN1) |
| 27 | self.task_name = 'task-%s' % (uuid.uuid4().hex) |
| 28 | self.model_name = 'op-%s' % (uuid.uuid4().hex) |
| 29 | self.model_id = '%s/%s' % (TEST_MODEL_ORG, self.model_name) |
| 30 | print(self.tmp_dir, self.task_name, self.model_name) |
| 31 | |
| 32 | def tearDown(self): |
| 33 | try: |