def test_045_api_78dk_platform_mm_base_addStoreBusiness_storeExamine_uploadImageRoleList_url_none( self): """ Time :2019-08-14 author : songchao desc :门店影像资料异常上传-v1.4_url为空 """ images = { "fileName": '1', "key": "key", "merchantUuid": "123", "url": "" } res = WebAction.test_api_78dk_platform_mm_base_store_saveImagesAndChange( images=images) Assertion.verity(json.loads(res)['code'], '20000')
def test_047_api_78dk_platform_mm_base_store_saveImagesAndChange_edit( self): """ Time :2019-08-14 author : songchao desc :门店影像资料上传-v1.4 """ key = "FjHpyILVVxjHksSyGsVKmQlnI01T" images = [{ "fileName": '1', "key": key, "storeUuid": store_uuid, "handleType": "edit", "oldImageUuid": storeImageUuid, "sysImageKey": sysImageKey } for storeImageUuid, sysImageKey in image_dict.items()] res = WebAction.test_api_78dk_platform_mm_base_store_saveImagesAndChange( images=images) Assertion.verity(json.loads(res)['code'], '10000')
def test_041_api_78dk_platform_mm_base_addStoreBusiness_storeExamine_uploadImageRoleList( self): """ Time :2019-08-14 author : songchao desc :门店影像资料上传-v1.4 """ key = "FjHpyILVVxjHksSyGsVKmQlnI01T" sysImageKeys = [ "MDFZRSFZZM", "MDFZRSFZFM", "MDFZRSFZSC", "MDWBHJZ", "MDNBHJZ", "MDQTLOGO", "MDZLHT", "MDPXXY" ] images = [{ "fileName": '1', "key": key, "storeUuid": store_uuid, "handleType": "add", "oldImageUuid": '', "sysImageKey": sysImageKey } for sysImageKey in sysImageKeys] res = WebAction.test_api_78dk_platform_mm_base_store_saveImagesAndChange( images=images) Assertion.verity(json.loads(res)['code'], '10000')