def test_29api_78dk_platform_cm_base_legal_deleteLegalPerson(self): # 删除法人代表 name2 channelname2 # 添加渠道 res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel( city="510100", name=channelname2, province="510000", region="510107", shortname=channelname2 + '拒绝简称', parentchanneluuid=self.channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') # 添加法人代表 sql = 'name="' + channelname2 + '" and state ="enabled"' channelid = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile', 'channel_uuid', sql) PlatformAction.test_api_78dk_platform_cm_base_legal_saveLegalPerson( cardnumber='510903199909098900', channelormerchantuuid=channelid, legalpersonuuid='', mobile='18909890989', name=name2) # 删除法人代表 sql = 'name="' + name2 + '" and state ="enabled"' legalpersonid = MysqlClent.select_one(loginAction.DB, 'Tbl_LegalPerson', 'legal_person_uuid', sql) res4 = PlatformAction.test_api_78dk_platform_cm_base_legal_deleteLegalPerson( legalpersonid) Assertion.verity(json.loads(res4)['code'], '10000')
def test_01api_78dk_platform_cm_base_saveChannel(self): # 添加渠道 city, name, province, region, shortname, parentchanneluuid, res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel( city="510100", name=channelname, province="510000", region="510107", shortname=channelname + '简称', parentchanneluuid='') Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_40api_78dk_platform_cm_base_business_deleteBusinessInfor(self): res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel( city="510100", name=channelname2, province="510000", region="510107", shortname=channelname2 + '拒绝简称', parentchanneluuid=self.channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') # 查询渠道id sql = 'name="' + channelname2 + '" and state ="enabled"' channelid = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile', 'channel_uuid', sql) print(channelid) # 新增机构信息 PlatformAction.test_api_78dk_platform_cm_base_business_saveBusinessInfor( businessaddress='天府软件园', businessaddressgpsloction='天府软件园GPS地址', businessaddresszipcode='000000', businesshoursendtime='18:30', businesshoursstarttime='08:30', businessinformationuuid='', businessregistrationnumber='443534534543', channelormerchantuuid=channelid, documentaddress='天府软件园', email=email, organizationcode='567657675765', socialunifiedcreditcode='34534543534', storerentalendtime='2019-01-12', storerentalstarttime='2018-01-12', taxregistrationnumber='34543543543', documentprovince=510000, documentcity=510100, documentregion=510104, documentprovincename='', documentcityname='', documentregionname='', businessprovince=510000, businesscity=510100, businessregion=510104, businessprovincename='', businesscityname='', businessregionname='') sql = 'email="' + email + '" and state ="enabled"' businnessid = MysqlClent.select_one(loginAction.DB, 'Tbl_BusinessInformation', 'business_information_uuid', sql) # 删除结算 res = PlatformAction.test_api_78dk_platform_cm_base_business_deleteBusinessInfor( businnessid) Assertion.verity(json.loads(res)['code'], '10000')
def saveChannel(channelname): # 添加渠道 city, name, province, region, shortname, parentchanneluuid, res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel( city=510100, province=510000, name=channelname, shortname=channelname + '简称', parentchanneluuid='', region=510107) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') channelid = json.loads(res)['data']['channelUuid'] return channelid
def test_10api_78dk_platform_cm_examine_examine_false(self): # 渠道审核不过 res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel( city="510100", name=channelname1, province="510000", region="510107", shortname=channelname1 + '拒绝简称', parentchanneluuid=self.channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') res = PlatformAction.test_api_78dk_platform_cm_examine_examine( isadopt='false', message='不过', uid=self.channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')