def test_upload_file(self):
host_name = "{0}:{1}".format(os.environ['HOSTNAME'], "8989")
resp = requests.post('http://' + host_name + '/api/v1/type/imagefile/base/mes' \
+ '/table/' + self.__class__.rand_name + '/label/1/')
temp_file = TemporaryUploadedFile("img_test_data", "byte", 66666, "xxxxxxxxxxxxxxxxxxxxxxxxxx")
self.assertEqual(ImageManager().put_data("mes", self.__class__.rand_name.join , "1" , [temp_file]), 1)
tfmsa_logger("==========PASS==========")
test_image_store_process.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录