def test_06_original_purchase_return_case(self): """原单退货(其他账户)""" self.login_action() puchasereutrn = PurchaseReturnView(self.driver) pruchase_order = ReadData().get_data('product_purchase_order', 'num2') puchasereutrn.original_order_return_action(1, keyword=pruchase_order, account='其他账户') purchasereturn_num = puchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num6', purchasereturn_num) self.assertEqual(puchasereutrn.check_account_type(), '其他账户')
def test_15_direct_purchase_return_case(self): """直接退货(其他账户)""" self.login_action() purchasereutrn = PurchaseReturnView(self.driver) purchasereutrn.direct_return_action('李洲全供应商1', name='测试商品8号', num=1, account='其他账户') purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num15', purchasereturn_num) self.assertTrue(purchasereutrn.check_purchase_return_success_status())
def test_01_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, normal=True, keyword=pruchase_order) purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num1', purchasereturn_num) self.assertTrue(purchasereutrn.check_purchase_return_success_status())
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_17_direct_purchase_return_case(self): """直接退货(改价)""" self.login_action() purchasereutrn = PurchaseReturnView(self.driver) purchasereutrn.direct_return_action('李洲全供应商1', name='测试商品8号', num=1, modify=1000) purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num17', purchasereturn_num) total_money = purchasereutrn.check_total_money() self.assertEqual(total_money, '¥1000.00')
def test_16_direct_purchase_return_case(self): """直接退货(继续退货)""" self.login_action() purchasereutrn = PurchaseReturnView(self.driver) purchasereutrn.direct_return_action('李洲全供应商1', normal=True, name='测试商品8号', num=1, is_continue=True) purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() ReadData().write_data('product_purchase_return_order', 'num16', purchasereturn_num) self.assertTrue(purchasereutrn.check_purchase_return_success_status())
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, '退货商品')
def test_08_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, modify=1000) purchasereturn_num = purchasereutrn.get_purchase_return_ordernum() total_money = purchasereutrn.check_total_money() ReadData().write_data('product_purchase_return_order', 'num8', purchasereturn_num) self.assertEqual(total_money, '¥1000.00')