def test_35api_78dk_platform_cm_base_clear_deleteClearingAccount(self): # 删除结算信息 # 新建结算信息 sql = 'name="' + channelname2 + '" and state ="enabled"' channelid1 = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile', 'channel_uuid', sql) PlatformAction.test_api_78dk_platform_cm_base_clear_saveClearingAccount( accountname=namecount2, accountnumber='6011826564542944', accountopeningbank='农业银行', accounttype='public_accounts', branchname='支行名称', chamberlainidcard='431081199812097872', channelormerchantuuid=channelid1, city='510100', clearingaccountuuid='', linenumber='6756765756', phone='15179366892', province='510000', region='510101') sql = 'account_name="' + namecount2 + '" and state ="enabled"' clearing_account_uuid = MysqlClent.select_one(loginAction.DB, 'Tbl_ClearingAccount', 'clearing_account_uuid', sql) # 删除结算信息 res = PlatformAction.test_api_78dk_platform_cm_base_clear_deleteClearingAccount( clearing_account_uuid) Assertion.verity(json.loads(res)['code'], '10000')
def test_34api_78dk_platform_cm_base_clear_deleteClearingAccount_not_exist( self): # 删除结算信息---不存在 res = PlatformAction.test_api_78dk_platform_cm_base_clear_deleteClearingAccount( '123') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '请求参数不正确!')