def tearDown(self): ClearingWithdrawal.redis_clear(self.after_treatment_data) ClearingWithdrawal.withdrawal_clear(self.after_treatment_data) log.info( '******************************** -- 测试结束 -- ********************************************' ) log.info('\r\n\r\n\r\n\r\n')
def test_flow_5(self, flow_5): """ 缓存存在,但数据库不存在,发起提现请求 """ PreconditionWithdrawal.mct_update_amount_pre(flow_5) # 补充测试商户的余额与可结算余额 self.after_treatment_data = Handle.machaccnt_withdraw_handle(flow_5) RequestBase.send_request(**self.after_treatment_data) # 清理数据库记录 ClearingWithdrawal.withdrawal_clear(self.after_treatment_data) self.err_public(flow_5)