def test_18_direct_purchase_return_case(self): """直接退货(备注)""" self.login_action() purchasereutrn = PurchaseReturnView(self.driver) purchasereutrn.direct_return_action('李洲全供应商1', name='测试商品8号', num=1, remark='直接退货备注') purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num18', purchasereturn_num) info = purchasereutrn.check_remaks() self.assertEqual(info, '直接退货备注')
def test_09_original_purchase_return_case(self): """原单退货(备注)""" self.login_action() purchasereutrn = PurchaseReturnView(self.driver) pruchase_order = ReadData().get_data('product_purchase_order', 'num2') purchasereutrn.original_order_return_action(1, keyword=pruchase_order, remark='退货商品') purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() info = purchasereutrn.check_remaks() ReadData().write_data('product_purchase_return_order', 'num9', purchasereturn_num) self.assertEqual(info, '退货商品')