def test_16_api_78dk_platform_fund_fundPackage_saveFundPackage(self): """ 添加资金包 :return: """ res = WebAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=FundPackagename, state='enabled', fundsideuuid=fundside_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_13_api_78dk_platform_fund_fundPackage_saveFundPackage_fundside_uuid_is_none( self): """ 添加资金包 :return: """ res = WebAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=FundPackagename, state='enabled', fundsideuuid='') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], 'fundSideUuid不能为空!')
def test_15_api_78dk_platform_fund_fundPackage_saveFundPackage_256name( self): """ 添加资金包 :return: """ res = WebAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=''.join(fake.words(nb=128)), state='enabled', fundsideuuid=fundside_uuid) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '插入资金包发生失败!')
def test_12_api_78dk_platform_fund_fundPackage_saveFundPackage_amount_is_none( self): """ 添加资金包 :return: """ res = WebAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount='', name=FundPackagename, state='enabled', fundsideuuid=fundside_uuid) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '总额度不能为空,')