test_image_store_process.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:tensormsa_old 作者: TensorMSA 项目源码 文件源码
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==========")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号