def test_18_direct_sales_return_case(self): """直接退货(备注)""" self.login_action() salesreutrn = SalesReturnView(self.driver) salesreutrn.direct_return_action('李洲全-13888888811', name='测试商品8号', num=1, remark='直接退货备注') salesreturn_num = salesreutrn.get_detail_return_ordernum() ReadData().write_data('product_sale_return_order', 'num18', salesreturn_num) info = salesreutrn.check_remaks() self.assertEqual(info, '直接退货备注')
def test_09_original_sales_return_case(self): """原单退货(备注)""" self.login_action() salesreturn = SalesReturnView(self.driver) sales_order = ReadData().get_data('product_sale_order', 'num1') salesreturn.original_order_return_action(good_name='测试商品8号', good_num=1, keyword=sales_order, remark='退货商品') salesreturn_num = salesreturn.get_detail_return_ordernum() info = salesreturn.check_remaks() ReadData().write_data('product_sale_return_order', 'num9', salesreturn_num) self.assertEqual(info, '退货商品')