def test_032_api_78dk_app_process_repayPlanCalculator_storeuuid_none(self): """ 还款计划试算 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_repayPlanCalculator( isdiscount=True, loanamount=10000, productdetailconfiguuid=productDetailConfigUuid, productdetailuuid=productDetailUuid, storeuuid='', repaymentdate='')) Assertion.verity(res['code'], '20000')
def test_025_api_78dk_app_process_repayPlanCalculator_loanamount_min(self): """ 还款计划试算 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_repayPlanCalculator( isdiscount=True, loanamount=0.00000000001, productdetailconfiguuid=productDetailConfigUuid, productdetailuuid=productDetailUuid, storeuuid=store_uuid, repaymentdate='')) Assertion.verity(res['code'], '20000') Assertion.verity(res['msg'], '分期金额必须大于1!')
def test_041_api_78dk_app_process_repayPlanCalculator_false(self): """ 还款计划试算 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_repayPlanCalculator( isdiscount='false', loanamount=10000, productdetailconfiguuid=productDetailConfigUuid, productdetailuuid=productDetailUuid, storeuuid=store_uuid, repaymentdate='2019-11-25')) Assertion.verity(res['code'], '10000') Assertion.verityContain(res['data'], 'handlingFee') Assertion.verityContain(res['data'], 'lastPayDate') Assertion.verityContain(res['data'], 'number') Assertion.verityContain(res['data'], 'principal') Assertion.verityContain(res['data'], 'totalHandlingFee') Assertion.verityContain(res['data'], 'totalMoney') Assertion.verityContain(res['data'], 'totalPrincipal')
def test_016_api_78dk_app_process_repayPlanCalculator_true(self): """ 还款计划试算 :return: """ global productDetailUuid, store_uuid productDetailUuid = loginAction.global_dict.get('productDetailUuid') store_uuid = loginAction.global_dict.get('store_uuid') res = json.loads( AppAction.test_api_78dk_app_process_repayPlanCalculator( isdiscount='true', loanamount=10000, productdetailconfiguuid=productDetailConfigUuid, productdetailuuid=productDetailUuid, storeuuid=store_uuid, repaymentdate='')) Assertion.verity(res['code'], '10000') Assertion.verityContain(res['data'], 'handlingFee') Assertion.verityContain(res['data'], 'lastPayDate') Assertion.verityContain(res['data'], 'number') Assertion.verityContain(res['data'], 'principal') Assertion.verityContain(res['data'], 'totalHandlingFee') Assertion.verityContain(res['data'], 'totalMoney') Assertion.verityContain(res['data'], 'totalPrincipal')