def test_031_api_78dk_platform_mm_base_saveMerchant_not_channeluuid(self): # 新增商户基本信息失败,没有所属渠道 res = json.loads( PlatformAction.test_api_78dk_platform_mm_base_saveMerchant( note='备注', name=merchantname, parentmerchantuuid='', shortname=merchantname + '商户简称', channeluuid='')) Assertion.verity(res['code'], '20000') Assertion.verity(res['msg'], 'ChannelUuid不能为空!')
def test_030_api_78dk_platform_mm_base_saveMerchant_not_shortname(self): # 新增商户基本信息失败,没有商户简称 res = json.loads( PlatformAction.test_api_78dk_platform_mm_base_saveMerchant( note='备注', name=merchantname, parentmerchantuuid='', shortname='', channeluuid=channelid)) Assertion.verity(res['code'], '20000') Assertion.verity(res['msg'], 'ShortName不能为空!')
def test_001_api_78dk_platform_mm_base_saveMerchant(self): # 新增商户基本信息 global channelid channelid = global_dict.get('channelid') res = json.loads( PlatformAction.test_api_78dk_platform_mm_base_saveMerchant( note='备注', name=merchantname, parentmerchantuuid='', shortname=merchantname + '商户简称', channeluuid=channelid)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功') Assertion.verityContain(res['data'], 'merchantUuid') global_dict.set(merchantUuid=res['data']['merchantUuid'])
def test_001_api_78dk_platform_mm_base_saveMerchant(self): """ 新增商户基本信息 :return: """ channelid = loginAction.global_dict.get('channelid') res = json.loads( PlatformAction.test_api_78dk_platform_mm_base_saveMerchant( note='备注', name=merchantname, parentmerchantuuid='', shortname=merchantname + '商户简称', channeluuid=channelid, industryfirst=0, city=0, industrysecond=0, province=0)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功') Assertion.verityContain(res['data'], 'merchantUuid') global merchantUuid_del merchantUuid_del = res['data']['merchantUuid'] loginAction.global_dict.set( merchantUuid_del=res['data']['merchantUuid'])