Exemplo n.º 1
0
 def test_2_after_customer_recharge(self):
     """
     会员充值测试
     :return:
     """
     logging.debug(u"test_after_customer_recharge")
     # 更新充值前的验证数据
     self._customer.update_pre_verify_data()
     self._referral.update_pre_verify_data()
     # 充值操作
     self._customer.top_up(40000, REFERRAL_PHONE)
     # 更新充值后的验证数据
     self._customer.update_post_verify_data()
     self._referral.update_post_verify_data()
     # 封装验证值
     self._customer.expectedData = CustomerVerifyData.expected_data(0, 40000, 2, 40000)
     self._referral.expectedData = CustomerVerifyData.expected_data(0, 40000, 5, 0)
     # 验证数据
     self._data_assertion()
Exemplo n.º 2
0
 def test_1_after_customer_register(self):
     """
     注册会员测试
     :return:
     """
     logging.debug(u"test_after_customer_register")
     # 更新注册后的验证数据
     self._customer.update_post_verify_data()
     # 封装验证值
     self._customer.expectedData = CustomerVerifyData.expected_data(0, 500, 1, 0)
     # 验证数据
     self._data_assertion()
    def test_1_recharge_shopping_order(self):
        """
        :return:
        """
        logging.debug("recharge_shopping_order")
        param = {
            'member_number': self._customer_re.member_number,
            'amount': '100',
            'phone': self._customer.phone,
        }

        market_service.remainder_roll_out(param)
        # 更新充值后的验证数据
        self._test_data_re.update_post_verify_data()
        self._test_data.update_post_verify_data()
        # 封装验证值
        self._customer_re.expectedData = CustomerVerifyData.expected_data(
            0, 0, 0, -100)  # 更新会员验证值
        self._customer.expectedData = CustomerVerifyData.expected_data(
            0, 0, 0, 100)  # 更新会员验证值
        # 验证数据
        self._data_assertion_re()
        self._data_assertion()
Exemplo n.º 4
0
    def test_2_Increase_integral(self):
        """
        :return: 会员增加积分验证, 增加10000积分
        """
        logging.debug("recharge_shopping_order")
        param = {
            'member_number': self._customer_re.member_number,
            'direction': '1',
            'score': '10000',
            'reason': '自动化增加积分'
        }

        market_service.change_score(param)
        # 更新充值后的验证数据
        self._test_data_re.update_post_verify_data()
        # 封装验证值
        self._customer_re.expectedData = CustomerVerifyData.expected_data(
            0, 10000, 0, 0)  # 更新会员验证值
        # 验证数据
        self._data_assertion_re()
Exemplo n.º 5
0
    def test_1_cash_withdrawal(self):
        """
        :return:
        """
        logging.debug("recharge_shopping_order")
        param = {
            'member_number': self._customer_re.member_number,
            'amount': '100',
            'score': '100',
            'minus_introducer_score': '2',
            'introducer_arr': []
        }

        market_service.cash_refund(param)
        # 更新充值后的验证数据
        self._test_data_re.update_post_verify_data()
        # 封装验证值
        self._customer_re.expectedData = CustomerVerifyData.expected_data(
            0, -100, 0, -100)  # 更新会员验证值
        # 验证数据
        self._data_assertion_re()
Exemplo n.º 6
0
 def test_2_pos_Combination_and_common_exchange_part(self):
     """
     组合商品与普通商品pos订单,部分换货(普通商品)
     ‘腰背夹’:'深蓝色 58'换 "深蓝色 64"
     :return:
     """
     logging.debug("test_2_possskucombi_return_part")
     if globals()['shopping_order_id'] is not None:
         exchange_order_id = globals()['shopping_order_id'] + "_0"
         pos_param = {
             'sub_order_id':
             exchange_order_id,
             'goods_num':
             '1',
             'goods_total_price':
             '3244.80',
             'reason':
             '30天无理由换货',
             'remarks':
             '哈哈',
             'type':
             '2',
             'goods_list':
             '[{"num":1,"sku_id":"4879","sku_name":"腰背夹","sku_detail":"深蓝色 64","tiaoma":"M216C237C0464","kuanhao":"M216C237","danjia":"3380.00","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg"}]',
         }
         market_service.exchange_order(pos_param)
         # 更新充值后的验证数据
         self._test_data.update_post_verify_data()
         self._referral.update_post_verify_data()
         # 封装验证值
         self.expectedData(
             0  # 会员消费额
             ,
             0  # 会员积分
             ,
             2  # 会员卡等级
             ,
             0  # 会员余额
             ,
             0  # 总揽到店次数
             ,
             0  # 总揽新增会员数
             ,
             0  # 总揽订单数
             ,
             0  # 总揽退单数
             ,
             0  # 总揽销售总额
             ,
             0  # M216C237C0458总仓库存
             ,
             0  # M216C237C0464总仓库存
             ,
             0  # M116E248B0158总仓库存
             ,
             0  # M116E248B0164总仓库存
             ,
             0  # M316J232B01106总仓库存
             ,
             0  # M316J232B0176总仓库存
             ,
             0  # ZH02B215190T796242总仓库存
             ,
             0  # 验证值
             ,
             1  # M216C237C0458门店库存
             ,
             -1  # M216C237C0464门店库存
             ,
             0  # M116E248B0158门店库存
             ,
             0  # M116E248B0164门店库存
             ,
             0  # M316J232B01106门店库存
             ,
             0  # M316J232B0176门店库存
             ,
             0  # ZH02B215190T796242门店库存
             ,
             0  # 门店到店次数期待增加值
             ,
             0  # 门店新增会员数期待增加值
             ,
             1  # 门店订单数期待增加值
             ,
             0  # 门店退单数期待增加值
             ,
             0  # 门店销售总额期待增加值
             ,
             0  # 门店平台销售总额期待增加值
         )
         self._referral.expectedData = CustomerVerifyData.expected_data(
             0, 0, 5, 0)
         # 验证数据
         self._data_assertion()
Exemplo n.º 7
0
    def test_1_pos_shopping_order(self):
        """
        pos门店总仓混合下单单购物成功检测
        腰背夹M216C237,深蓝色,58 总仓5个,门店5个
        :return:
        """
        logging.debug("test_1_pos_shopping_order")
        order_param = {
            'price': '33800.00',
            'discount_money': '2704.00',
            'real_pay': '31096.00',
            'receive_name': self._customer.consignee,
            'receive_phone': self._customer.phone,
            'receive_sheng': self._customer.province,
            'receive_shi': self._customer.city,
            'receive_diqu': self._customer.area,
            'receive_address': self._customer.address,
            'member_id': self._customer.member_number,
            'member_name': self._customer.name,
            'member_phone': self._customer.phone,
            'plateform_id': self._customer.platform.platform_id,
            'special_employee_id': self._customer.employee.employee_id,
            'discount_rate': '0.92',
            'goods_list[0][danjia]': '3380.00',
            'goods_list[0][sku_num]': '10',
            'goods_list[0][sku_name]': '腰背夹',
            'goods_list[0][price]': '33800.00',
            'goods_list[0][real_pay_price]': '31096.00',
            'goods_list[0][discount_price]': '2704.00',
            'goods_list[0][sku_id]': '4878',
            'goods_list[0][tiaoma]': 'M216C237C0458',
            'goods_list[0][kuanhao]': 'M216C237',
            'goods_list[0][sku_detail]': '深蓝色 58',
            'goods_list[0][img]':
            'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
            'goods_list[0][repo_out_num]': '5',
            'goods_list[0][com_out_num]': '5',
            'goods_list[0][no_discount]': '0',
            'goods_list[0][no_score]': '0',
            'goods_list[0][is_active]': '0',
            'goods_list[0][type]': '1',
            'pay_type': 'pos',
            'zip_code': '',
            'referral_phone': '',
            'beizhu': '',
            'discount_id': '',
            'discount_description': '',
            'coupon_id': '',
            'coupon_discount_amount': '0.00',
            'coupon_discount_rate': ''
        }
        # 下单购物
        globals()['shopping_order_id'] = market_service.pos_order(order_param)
        # 更新充值后的验证数据
        self._test_data.update_post_verify_data()
        # 封装验证值
        self._customer.expectedData = CustomerVerifyData.expected_data(
            31096, 31096, 3, 0)  # 更新会员验证值
        # self._global.expectedData = LCGlobalVerifyData.expected_data(1, 0, 1, 0, 31096)  # 更新总览验证值

        expected_global_repo = {
            'M216C237C0458': -5,
            'M216C237C0464': 0,
            'M116E248B0158': 0,
            'M116E248B0164': 0,
            'M316J232B01106': 0,
            'M316J232B0176': 0,
            'ZH02B215190T796242': 0
        }
        self._global.repository.update_expected_verify_data(
            expected_global_repo)  # 更新总览库存验证值

        expected_area_values = {
            AREA['area_id']: AreaVerifyData.expected_data(3.11)
        }
        self._global.update_expected_area_verify_data(
            expected_area_values)  # 更新大区验证值

        self._platform.expectedData = PlatVerifyData.expected_data(
            3.11)  # 更新平台验证值
        self._employee.expectedData = EmployeeVerifyData.expected_data(
            3.11)  # 更新员工验证值

        expected_store_repo = {
            'M216C237C0458': -5,
            'M216C237C0464': 0,
            'M116E248B0158': 0,
            'M116E248B0164': 0,
            'M316J232B01106': 0,
            'M316J232B0176': 0,
            'ZH02B215190T796242': 0
        }
        self._store.repository.update_expected_verify_data(
            expected_store_repo)  # 更新门店库存验证值

        expected_store_values = {
            STORE['store_id']:
            StoreVerifyData.expected_data(1, 0, 1, 0, 31096, 31096)
        }
        self._area.update_expected_store_verify_data(
            expected_store_values)  # 更新门店验证值
        # 验证数据
        self._data_assertion()
Exemplo n.º 8
0
 def test_4_return_pieces(self):
     """
     退货预售商品
     YS5130N748574
     :return:
     """
     logging.debug("test_4_return_10pieces")
     shopping_order_id = globals()['order_id']
     member_number = self._customer.member_number
     exchangeOrderId = market_service.find_order_id(shopping_order_id,
                                                    member_number)
     return_order_id = exchangeOrderId + "_0"
     return_param = {
         'main_order_id': exchangeOrderId,
         'return_price': '0.00',
         'reason': '15天无理由退货',
         'remarks': '测试',
         'afterSales_info[0][order_id]': return_order_id,
         'afterSales_info[0][danjia]': '1000.00',
         'afterSales_info[0][sku_name]': '周自动化测试勿动',
         'afterSales_info[0][sku_detail]': '',
         'afterSales_info[0][tiaoma]': 'YS5130N748574',
         'afterSales_info[0][kuanhao]': '',
         'afterSales_info[0][sku_id]': '6430',
         'afterSales_info[0][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019112610521983674.jpg',
         'afterSales_info[0][aftersale_num]': '1',
         'afterSales_info[0][aftersale_money]': '0.00',
         'afterSales_info[0][goods_type]': '2'
     }
     market_service.return_order(return_param)
     # 更新充值后的验证数据
     self._test_data.update_post_verify_data()
     self._test_data_re.update_post_verify_data()
     # 验证值
     self.expectedData(
         -1000  # 会员消费额
         ,
         0  # 会员积分
         ,
         2  # 会员卡等级
         ,
         0  # 会员余额
         ,
         0  # 总揽到店次数
         ,
         0  # 总揽新增会员数
         ,
         0  # 总揽订单数
         ,
         1  # 总揽退单数
         ,
         -1000.00  # 总揽销售总额
         ,
         0  # M216C237C0458总仓库存
         ,
         0  # M216C237C0464总仓库存
         ,
         0  # M116E248B0158总仓库存
         ,
         0  # M116E248B0164总仓库存
         ,
         0  # M316J232B01106总仓库存
         ,
         0  # M316J232B0176总仓库存
         ,
         0  # ZH02B215190T796242总仓库存
         ,
         -0.1  # 验证值
         ,
         0  # M216C237C0458门店库存
         ,
         1  # M216C237C0464门店库存
         ,
         0  # M116E248B0158门店库存
         ,
         1  # M116E248B0164门店库存
         ,
         0  # M316J232B01106门店库存
         ,
         0  # M316J232B0176门店库存
         ,
         0  # ZH02B215190T796242门店库存
         ,
         0  # 门店到店次数期待增加值
         ,
         0  # 门店新增会员数期待增加值
         ,
         0  # 门店订单数期待增加值
         ,
         1  # 门店退单数期待增加值
         ,
         -1000.00  # 门店销售总额期待增加值
         ,
         -1000.00  # 门店平台销售总额期待增加值
     )
     # 封装验证值
     self._customer_re.expectedData = CustomerVerifyData.expected_data(
         0, 0, 0, 0)  # 更新转介绍会员验证值
     # 验证数据
     self._data_assertion()
     self._data_assertion_re()
Exemplo n.º 9
0
 def test_3_changer_pieces(self):
     """
     换货预售商品
     YS5130N748574
     深蓝色58 黑色58 换 深蓝色64 黑色64
     :return:
     """
     logging.debug("test_3_changer_10pieces")
     if globals()['order_id'] is not None:
         exchange_order_id = globals()['order_id'] + "_1"
         params = {
             'sub_order_id':
             exchange_order_id,
             'goods_num':
             '1',
             'goods_total_price':
             '0.00',
             'reason':
             '30天无理由换货',
             'remarks':
             '测试',
             'type':
             '2',
             'goods_type':
             '3',
             'goods_list':
             '[{"num":"1","sku_id":"6430","sku_name":"周自动化测试勿动","sku_detail":"","tiaoma":"YS5130N748574","kuanhao":"","danjia":"1000.00","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019112610521983674.jpg"}]',
             'sub_goods_list':
             '{"YS5130N748574":[{"num":1,"sku_id":"4702","sku_name":"包臀内裤","sku_detail":"黑色 64","tiaoma":"M116E248B0164","kuanhao":"M116E248","danjia":"0.01","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg","repo_num":488},{"num":1,"sku_id":"4879","sku_name":"腰背夹","sku_detail":"深蓝色 64","tiaoma":"M216C237C0464","kuanhao":"M216C237","danjia":"0.01","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg","repo_num":338}]}'
         }
         market_service.exchange_order(params)
         # 更新充值后的验证数据
         self._test_data.update_post_verify_data()
         self._test_data_re.update_post_verify_data()
         # 验证值
         self.expectedData(
             0  # 会员消费额
             ,
             0  # 会员积分
             ,
             2  # 会员卡等级
             ,
             0  # 会员余额
             ,
             0  # 总揽到店次数
             ,
             0  # 总揽新增会员数
             ,
             1  # 总揽订单数
             ,
             0  # 总揽退单数
             ,
             0  # 总揽销售总额
             ,
             0  # M216C237C0458总仓库存
             ,
             0  # M216C237C0464总仓库存
             ,
             0  # M116E248B0158总仓库存
             ,
             0  # M116E248B0164总仓库存
             ,
             0  # M316J232B01106总仓库存
             ,
             0  # M316J232B0176总仓库存
             ,
             0  # ZH02B215190T796242总仓库存
             ,
             0  # 验证值
             ,
             1  # M216C237C0458门店库存
             ,
             -1  # M216C237C0464门店库存
             ,
             1  # M116E248B0158门店库存
             ,
             -1  # M116E248B0164门店库存
             ,
             0  # M316J232B01106门店库存
             ,
             0  # M316J232B0176门店库存
             ,
             0  # ZH02B215190T796242门店库存
             ,
             0  # 门店到店次数期待增加值
             ,
             0  # 门店新增会员数期待增加值
             ,
             1  # 门店订单数期待增加值
             ,
             0  # 门店退单数期待增加值
             ,
             0  # 门店销售总额期待增加值
             ,
             0  # 门店平台销售总额期待增加值
         )
         # 封装验证值
         self._customer_re.expectedData = CustomerVerifyData.expected_data(
             0, 0, 0, 0)  # 更新转介绍会员验证值
         # 验证数据
         self._data_assertion()
         self._data_assertion_re()
Exemplo n.º 10
0
 def test_2_zero_pay_order(self):
     """
     余额扫描确认0元单
     选码黑色58 深蓝色58
     YS5130N748574 预售商品
     :return:
     """
     logging.debug("test_2_zero_pay_order")
     market_service.set_pre_sale_product('6430', '1')
     param = {
         'record_id':
         globals()['shopping_order_id'],
         'receive_name':
         self._customer.consignee,
         'receive_phone':
         self._customer.phone,
         'beizhu':
         '',
         'com_out_num':
         '0',
         'receive_sheng':
         self._customer.province,
         'receive_shi':
         self._customer.city,
         'receive_diqu':
         self._customer.area,
         'receive_address':
         self._customer.address,
         'repo_out_num':
         '1',
         'referral_phone':
         self._customer_re.phone,
         'goods_info': [{
             "danjia": "0.01",
             "sku_num": 1,
             "sku_name": "腰背夹",
             "price": "0.01",
             "sku_id": "4878",
             "tiaoma": "M216C237C0458",
             "kuanhao": "M216C237",
             "sku_detail": "深蓝色 58",
             "img":
             "https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg",
             "repo_out_num": 1,
             "com_out_num": 0
         }, {
             "danjia": "0.01",
             "sku_num": 1,
             "sku_name": "包臀内裤",
             "price": "0.01",
             "sku_id": "4701",
             "tiaoma": "M116E248B0158",
             "kuanhao": "M116E248",
             "sku_detail": "黑色 58",
             "img":
             "https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg",
             "repo_out_num": 1,
             "com_out_num": 0
         }]
     }
     # 0,1表示发货与否,1表示发货,0表示不发货
     id = 1
     globals()['order_id'] = market_service.choose_size(param, id)
     # 更新充值后的验证数据
     self._test_data.update_post_verify_data()
     self._test_data_re.update_post_verify_data()
     # 验证值
     self.expectedData(
         1000  # 会员消费额
         ,
         0  # 会员积分
         ,
         2  # 会员卡等级
         ,
         0  # 会员余额
         ,
         0  # 总揽到店次数
         ,
         0  # 总揽新增会员数
         ,
         1  # 总揽订单数
         ,
         0  # 总揽退单数
         ,
         0  # 总揽销售总额
         ,
         0  # M216C237C0458总仓库存
         ,
         0  # M216C237C0464总仓库存
         ,
         0  # M116E248B0158总仓库存
         ,
         0  # M116E248B0164总仓库存
         ,
         0  # M316J232B01106总仓库存
         ,
         0  # M316J232B0176总仓库存
         ,
         0  # ZH02B215190T796242总仓库存
         ,
         0.1  # 验证值
         ,
         -1  # M216C237C0458门店库存
         ,
         0  # M216C237C0464门店库存
         ,
         -1  # M116E248B0158门店库存
         ,
         0  # M116E248B0164门店库存
         ,
         0  # M316J232B01106门店库存
         ,
         0  # M316J232B0176门店库存
         ,
         0  # ZH02B215190T796242门店库存
         ,
         0  # 门店到店次数期待增加值
         ,
         0  # 门店新增会员数期待增加值
         ,
         1  # 门店订单数期待增加值
         ,
         0  # 门店退单数期待增加值
         ,
         1000  # 门店销售总额期待增加值
         ,
         1000  # 门店平台销售总额期待增加值
     )
     # 封装验证值
     self._customer_re.expectedData = CustomerVerifyData.expected_data(
         0, 0, 0, 0)  # 更新转介绍会员验证值
     # 验证数据
     self._data_assertion()
     self._data_assertion_re()
Exemplo n.º 11
0
 def test_1_ChargePreSaleGoods_cancel(self):
     """
      预售商品下单,填写转介绍人, 转订单之后取消
    ‘何明锐预售’:YS6789N838655 公司发货 1件 累计积分
     :return:
     """
     logging.debug("test_1_rechargesskuds_order")
     params = {
         'member_id': self._customer.member_number,
         'member_name': self._customer.name,
         'member_phone': self._customer.phone,
         'plateform_id': self._customer.platform.platform_id,
         'special_employee_id': self._customer.employee.employee_id,
         'pay_type': 'recharge',
         'goods_info': {
             'sku_num': '1',
             'sku_name': '何明锐预售',
             'sku_id': '6434',
             'tiaoma': 'YS6789N838655',
             'price': '1234.00',
             'kuanhao': '',
             'img':
             'https://lchapp.oss-cn-beijing.aliyuncs.com/2019112758736210149.png',
             'sku_detail': ''
         }
     }
     # 设置商品不发售
     product_id = 6434
     market_service.set_pre_sale_product(product_id, 2)
     globals()['shopping_order_id'] = market_service.presell_pos(params)
     # 设置商品发售
     market_service.set_pre_sale_product(product_id, 1)
     # 选择商品转订单
     param = {
         'record_id':
         globals()['shopping_order_id'],
         'receive_name':
         self._customer.consignee,
         'receive_phone':
         self._customer.phone,
         'beizhu':
         '',
         'com_out_num':
         '1',
         'receive_sheng':
         self._customer.province,
         'receive_shi':
         self._customer.city,
         'receive_diqu':
         self._customer.area,
         'receive_address':
         self._customer.address,
         'repo_out_num':
         '0',
         'referral_phone':
         self._customer_re.phone,
         'goods_info': [{
             "danjia": "0.01",
             "sku_num": 1,
             "sku_name": "腰背夹",
             "price": "0.01",
             "sku_id": "4878",
             "tiaoma": "M216C237C0458",
             "kuanhao": "M216C237",
             "sku_detail": "深蓝色 58",
             "img":
             "https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg",
             "repo_out_num": 0,
             "com_out_num": 1
         }, {
             "danjia": "0.01",
             "sku_num": 1,
             "sku_name": "包臀内裤",
             "price": "0.01",
             "sku_id": "4701",
             "tiaoma": "M116E248B0158",
             "kuanhao": "M116E248",
             "sku_detail": "黑色 58",
             "img":
             "https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg",
             "repo_out_num": 0,
             "com_out_num": 1
         }]
     }
     # 0,1表示发货与否,1表示发货,0表示不发货
     switch = 0
     globals()['order_shopping_id'] = market_service.choose_size(
         param, switch)
     # 取消订单
     market_service.cancellation_of_order(globals()['order_shopping_id'])
     # 更新充值后的验证数据
     self._test_data.update_post_verify_data()
     self._test_data_re.update_post_verify_data()
     # 封装验证值
     self.expectedData(
         0  # 会员消费额
         ,
         0  # 会员积分
         ,
         2  # 会员卡等级
         ,
         0  # 会员余额
         ,
         1  # 总揽到店次数
         ,
         0  # 总揽新增会员数
         ,
         1  # 总揽订单数
         ,
         0  # 总揽退单数
         ,
         0  # 总揽销售总额c
         ,
         -1  # M216C237C0458总仓库存
         ,
         0  # M216C237C0464总仓库存
         ,
         -1  # M116E248B0158总仓库存
         ,
         0  # M116E248B0164总仓库存
         ,
         0  # M316J232B01106总仓库存
         ,
         0  # M316J232B0176总仓库存
         ,
         0  # ZH02B215190T796242总仓库存
         ,
         0  # 验证值
         ,
         0  # M216C237C0458门店库存
         ,
         0  # M216C237C0464门店库存
         ,
         0  # M116E248B0158门店库存
         ,
         0  # M116E248B0164门店库存
         ,
         0  # M316J232B01106门店库存
         ,
         0  # M316J232B0176门店库存
         ,
         0  # ZH02B215190T796242门店库存
         ,
         1  # 门店到店次数期待增加值
         ,
         0  # 门店新增会员数期待增加值
         ,
         1  # 门店订单数期待增加值
         ,
         0  # 门店退单数期待增加值
         ,
         0  # 门店销售总额期待增加值
         ,
         0  # 门店平台销售总额期待增加值
     )
     # 封装验证值
     self._customer_re.expectedData = CustomerVerifyData.expected_data(
         0, 0, 0, 0)  # 更新转介绍会员验证值
     # 验证数据
     self._data_assertion()
     self._data_assertion_re()
Exemplo n.º 12
0
 def test_3_Combination_and_common_return_part(self):
     """
     换的商品退货
     :return:
     """
     logging.debug("test_3_recharge_return_other")
     if globals()['shopping_order_id'] is not None:
         exchange_order_id = market_service.find_order_id(
             globals()['shopping_order_id'], self._customer.member_number)
         exchange_order_id_a = exchange_order_id + '_0'  #3244.80
         return_exchange = {
             'main_order_id': exchange_order_id,
             'return_price': '0.00',
             'reason': '拍错/不想要',
             'remarks': '',
             'afterSales_info[0][order_id]': exchange_order_id_a,
             'afterSales_info[0][danjia]': '3380.00',
             'afterSales_info[0][sku_name]': '腰背夹',
             'afterSales_info[0][sku_detail]': '深蓝色 64',
             'afterSales_info[0][tiaoma]': 'M216C237C0464',
             'afterSales_info[0][kuanhao]': 'M216C237',
             'afterSales_info[0][sku_id]': '4879',
             'afterSales_info[0][img]':
             'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
             'afterSales_info[0][aftersale_num]': '1',
             'afterSales_info[0][aftersale_money]': '0.00',
             'afterSales_info[0][goods_type]': '1',
             's_confirm': '1'
         }
         market_service.return_order(return_exchange)
         # 更新充值后的验证数据
         self._test_data.update_post_verify_data()
         self._referral.update_post_verify_data()
         # 封装验证值
         self.expectedData(
             -3244  # 会员消费额
             ,
             -3244  # 会员积分
             ,
             2  # 会员卡等级
             ,
             0  # 会员余额
             ,
             0  # 总揽到店次数
             ,
             0  # 总揽新增会员数
             ,
             0  # 总揽订单数
             ,
             1  # 总揽退单数
             ,
             -3244  # 总揽销售总额
             ,
             0  # M216C237C0458总仓库存
             ,
             0  # M216C237C0464总仓库存
             ,
             0  # M116E248B0158总仓库存
             ,
             0  # M116E248B0164总仓库存
             ,
             0  # M316J232B01106总仓库存
             ,
             0  # M316J232B0176总仓库存
             ,
             0  # ZH02B215190T796242总仓库存
             ,
             -0.32  # 验证值
             ,
             0  # M216C237C0458门店库存
             ,
             1  # M216C237C0464门店库存
             ,
             0  # M116E248B0158门店库存
             ,
             0  # M116E248B0164门店库存
             ,
             0  # M316J232B01106门店库存
             ,
             0  # M316J232B0176门店库存
             ,
             0  # ZH02B215190T796242门店库存
             ,
             0  # 门店到店次数期待增加值
             ,
             0  # 门店新增会员数期待增加值
             ,
             0  # 门店订单数期待增加值
             ,
             0  # 门店退单数期待增加值
             ,
             -3244  # 门店销售总额期待增加值
             ,
             -3244  # 门店平台销售总额期待增加值
         )
         self._referral.expectedData = CustomerVerifyData.expected_data(
             0, -3244, 5, 0)
         # 验证数据
         self._data_assertion()
Exemplo n.º 13
0
 def test_1_pos_Combination_and_common_order(self):
     """
     组合商品与普通商品pos下单(两件组合商品和一件普通商品)
     ‘孟伟组合商品’: ‘ZH02B215190T796242’ 公司发货2件
     ‘腰背夹’: ‘M216C237C0458’ '深蓝色 58' 公司发货2件
     填写转介绍人
     :return:
     """
     logging.debug("test_1_pos_Combination_and_common_order")
     params = {
         'price': '19560.00',
         'discount_money': '782.40',
         'real_pay': '18777.60',
         'receive_name': self._customer.consignee,
         'receive_phone': self._customer.phone,
         'receive_sheng': self._customer.province,
         'receive_shi': self._customer.city,
         'receive_diqu': self._customer.area,
         'receive_address': self._customer.address,
         'member_id': self._customer.member_number,
         'member_name': self._customer.name,
         'member_phone': self._customer.phone,
         'plateform_id': self._customer.platform.platform_id,
         'special_employee_id': self._customer.employee.employee_id,
         'discount_rate': '0.96',
         'goods_list[0][danjia]': '3380',
         'goods_list[0][sku_num]': '2',
         'goods_list[0][sku_name]': '腰背夹',
         'goods_list[0][price]': '6760.00',
         'goods_list[0][real_pay_price]': '6489.60',
         'goods_list[0][discount_price]': '270.40',
         'goods_list[0][sku_id]': '4878',
         'goods_list[0][tiaoma]': 'M216C237C0458',
         'goods_list[0][kuanhao]': 'M216C237',
         'goods_list[0][sku_detail]': '深蓝色 58',
         'goods_list[0][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
         'goods_list[0][repo_out_num]': '0',
         'goods_list[0][com_out_num]': '2',
         'goods_list[0][no_discount]': '0',
         'goods_list[0][no_score]': '0',
         'goods_list[0][is_active]': '0',
         'goods_list[0][type]': '1',
         'goods_list[1][danjia]': '2000.00',
         'goods_list[1][sku_num]': '3',
         'goods_list[1][sku_name]': '腰背夹',
         'goods_list[1][price]': '6000.00',
         'goods_list[1][real_pay_price]': '5760.00',
         'goods_list[1][discount_price]': '240.00',
         'goods_list[1][sku_id]': '4878',
         'goods_list[1][tiaoma]': 'M216C237C0458',
         'goods_list[1][kuanhao]': 'M216C237',
         'goods_list[1][sku_detail]': '深蓝色 58',
         'goods_list[1][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
         'goods_list[1][repo_out_num]': '0',
         'goods_list[1][com_out_num]': '3',
         'goods_list[1][no_discount]': '0',
         'goods_list[1][no_score]': '0',
         'goods_list[1][is_active]': '0',
         'goods_list[1][type]': '2',
         'goods_list[1][zh_num]': '1',
         'goods_list[1][zh_repo_out_num]': '0',
         'goods_list[1][zh_com_out_num]': '1',
         'goods_list[1][zh_tiaoma]:': 'ZH02B215190T796242',
         'goods_list[1][zh_mark]': '2',
         'goods_list[1][zh_no_discount]': '0',
         'goods_list[1][zh_no_score]': '0',
         'goods_list[2][danjia]': '400.00',
         'goods_list[2][sku_num]': '1',
         'goods_list[2][sku_name]': '包臀内裤',
         'goods_list[2][price]': '400.00',
         'goods_list[2][real_pay_price]': '384.00',
         'goods_list[2][discount_price]': '16.00',
         'goods_list[2][sku_id]': '4701',
         'goods_list[2][tiaoma]': 'M116E248B0158',
         'goods_list[2][kuanhao]': 'M116E248',
         'goods_list[2][sku_detail]': '黑色 58',
         'goods_list[2][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg',
         'goods_list[2][repo_out_num]': '0',
         'goods_list[2][com_out_num]': '1',
         'goods_list[2][no_discount]': '0',
         'goods_list[2][no_score]': '0',
         'goods_list[2][is_active]': '0',
         'goods_list[2][type]': '2',
         'goods_list[2][zh_num]': '1',
         'goods_list[2][zh_repo_out_num]': '0',
         'goods_list[2][zh_com_out_num]': '1',
         'goods_list[2][zh_tiaoma]:': 'ZH02B215190T796242',
         'goods_list[2][zh_mark]': '2',
         'goods_list[2][zh_no_discount]': '0',
         'goods_list[2][zh_no_score]': '0',
         'goods_list[3][danjia]': '2000.00',
         'goods_list[3][sku_num]': '3',
         'goods_list[3][sku_name]': '腰背夹',
         'goods_list[3][price]': '6000.00',
         'goods_list[3][real_pay_price]': '5760.00',
         'goods_list[3][discount_price]': '240.00',
         'goods_list[3][sku_id]': '4878',
         'goods_list[3][tiaoma]': 'M216C237C0458',
         'goods_list[3][kuanhao]': 'M216C237',
         'goods_list[3][sku_detail]': '深蓝色 58',
         'goods_list[3][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
         'goods_list[3][repo_out_num]': '0',
         'goods_list[3][com_out_num]': '3',
         'goods_list[3][no_discount]': '0',
         'goods_list[3][no_score]': '0',
         'goods_list[3][is_active]': '0',
         'goods_list[3][type]': '2',
         'goods_list[3][zh_num]': '1',
         'goods_list[3][zh_repo_out_num]': '0',
         'goods_list[3][zh_com_out_num]': '1',
         'goods_list[3][zh_tiaoma]:': 'ZH02B215190T796242',
         'goods_list[3][zh_mark]': '3',
         'goods_list[3][zh_no_discount]': '0',
         'goods_list[3][zh_no_score]': '0',
         'goods_list[4][danjia]': '400.00',
         'goods_list[4][sku_num]': '1',
         'goods_list[4][sku_name]': '包臀内裤',
         'goods_list[4][price]': '400.00',
         'goods_list[4][real_pay_price]': '384.00',
         'goods_list[4][discount_price]': '16.00',
         'goods_list[4][sku_id]': '4701',
         'goods_list[4][tiaoma]': 'M116E248B0158',
         'goods_list[4][kuanhao]': 'M116E248',
         'goods_list[4][sku_detail]': '黑色 58',
         'goods_list[4][img]':
         'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg',
         'goods_list[4][repo_out_num]': '0',
         'goods_list[4][com_out_num]': '1',
         'goods_list[4][no_discount]': '0',
         'goods_list[4][no_score]': '0',
         'goods_list[4][is_active]': '0',
         'goods_list[4][type]': '2',
         'goods_list[4][zh_num]': '1',
         'goods_list[4][zh_repo_out_num]': '0',
         'goods_list[4][zh_com_out_num]': '1',
         'goods_list[4][zh_tiaoma]:': 'ZH02B215190T796242',
         'goods_list[4][zh_mark]': '3',
         'goods_list[4][zh_no_discount]': '0',
         'goods_list[4][zh_no_score]': '0',
         'pay_type': 'pos',
         'referral_phone': '17151800001'
     }
     globals()['shopping_order_id'] = market_service.pos_order(params)
     # 更新充值后的验证数据
     self._test_data.update_post_verify_data()
     self._referral.update_post_verify_data()
     # 封装验证值
     self.expectedData(
         18778  # 会员消费额
         ,
         18778  # 会员积分
         ,
         2  # 会员卡等级
         ,
         0  # 会员余额
         ,
         1  # 总揽到店次数
         ,
         0  # 总揽新增会员数
         ,
         1  # 总揽订单数
         ,
         0  # 总揽退单数
         ,
         18778  # 总揽销售总额
         ,
         -8  # M216C237C0458总仓库存
         ,
         0  # M216C237C0464总仓库存
         ,
         -2  # M116E248B0158总仓库存
         ,
         0  # M116E248B0164总仓库存
         ,
         0  # M316J232B01106总仓库存
         ,
         0  # M316J232B0176总仓库存
         ,
         -2  # ZH02B215190T796242总仓库存
         ,
         1.88  # 验证值
         ,
         0  # M216C237C0458门店库存
         ,
         0  # M216C237C0464门店库存
         ,
         0  # M116E248B0158门店库存
         ,
         0  # M116E248B0164门店库存
         ,
         0  # M316J232B01106门店库存
         ,
         0  # M316J232B0176门店库存
         ,
         0  # ZH02B215190T796242门店库存
         ,
         1  # 门店到店次数期待增加值
         ,
         0  # 门店新增会员数期待增加值
         ,
         1  # 门店订单数期待增加值
         ,
         0  # 门店退单数期待增加值
         ,
         18778  # 门店销售总额期待增加值
         ,
         18778  # 门店平台销售总额期待增加值
     )
     self._referral.expectedData = CustomerVerifyData.expected_data(
         0, 18778, 5, 0)
     # 验证数据
     self._data_assertion()
    def test_3_ChargePreSaleGoods_Exchange_other(self):
        """
                预售商品换的两件商品退货
                :return:
                """
        logging.debug("test_3_ChargeSimpleAndComplex_Exchange_other")
        if globals()['order_shopping_id'] is not None:
            exchange_order = market_service.find_order_id(
                globals()['order_shopping_id'], self._customer.member_number)

            return_order_c = exchange_order + "_0"
            recharge_param = {
                'main_order_id': exchange_order,
                'return_price': '0.00',
                'reason': '15天无理由退货',
                'remarks': '不要了',
                'afterSales_info[0][order_id]': return_order_c,
                'afterSales_info[0][danjia]': '1234.00',
                'afterSales_info[0][sku_name]': '何明锐预售',
                'afterSales_info[0][sku_detail]': '',
                'afterSales_info[0][tiaoma]': 'YS6789N838655',
                'afterSales_info[0][kuanhao]': '',
                'afterSales_info[0][sku_id]': '6434',
                'afterSales_info[0][img]':
                'https://lchapp.oss-cn-beijing.aliyuncs.com/2019112758736210149.png',
                'afterSales_info[0][aftersale_num]': '1',
                'afterSales_info[0][aftersale_money]': '0.00',
                'afterSales_info[0][goods_type]': '2',
            }
            market_service.return_order(recharge_param)
            # 更新充值后的验证数据
            self._test_data.update_post_verify_data()
            self._test_data_re.update_post_verify_data()
            # 封装验证值
            self.expectedData(
                -1234  # 会员消费额
                ,
                0  # 会员积分
                ,
                2  # 会员卡等级
                ,
                1234  # 会员余额
                ,
                0  # 总揽到店次数
                ,
                0  # 总揽新增会员数
                ,
                0  # 总揽订单数
                ,
                1  # 总揽退单数
                ,
                0  # 总揽销售总额
                ,
                0  # M216C237C0458总仓库存
                ,
                0  # M216C237C0464总仓库存
                ,
                0  # M116E248B0158总仓库存
                ,
                0  # M116E248B0164总仓库存
                ,
                0  # M316J232B01106总仓库存
                ,
                0  # M316J232B0176总仓库存
                ,
                0  # ZH02B215190T796242总仓库存
                ,
                -0.12  # 验证值
                ,
                0  # M216C237C0458门店库存
                ,
                1  # M216C237C0464门店库存
                ,
                0  # M116E248B0158门店库存
                ,
                1  # M116E248B0164门店库存
                ,
                0  # M316J232B01106门店库存
                ,
                0  # M316J232B0176门店库存
                ,
                0  # ZH02B215190T796242门店库存
                ,
                0  # 门店到店次数期待增加值
                ,
                0  # 门店新增会员数期待增加值
                ,
                0  # 门店订单数期待增加值
                ,
                1  # 门店退单数期待增加值
                ,
                -1234  # 门店销售总额期待增加值
                ,
                -1234  # 门店平台销售总额期待增加值
            )
            # 封装验证值
            self._customer_re.expectedData = CustomerVerifyData.expected_data(
                0, -1234, 0, 0)  # 更新转介绍会员验证值
            # 验证数据
            self._data_assertion()
            self._data_assertion_re()
 def test_2_ChargePreSaleGoods_Exchange_part(self):
     """
    预售商品换货
     :return:
     """
     pass
     logging.debug("test_2_ChargePreSaleGoods_Exchange_part")
     if globals()['order_shopping_id'] is not None:
         exchange_order_id = globals()['order_shopping_id'] + "_1"
         recharge_param = {
             'sub_order_id':
             exchange_order_id,
             'goods_num':
             '1',
             'goods_total_price':
             '0.00',
             'reason':
             '30天无理由换货',
             'remarks':
             '哈哈',
             'type':
             '2',
             'goods_type':
             '3',
             'goods_list':
             '[{"num":"1","sku_id":"6434","sku_name":"何明锐预售","sku_detail":"","tiaoma":"YS6789N838655","kuanhao":"","danjia":"1234.00","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019112758736210149.png"}]',
             'sub_goods_list':
             '{"YS6789N838655":[{"num":1,"sku_id":"4702","sku_name":"包臀内裤","sku_detail":"黑色 64","tiaoma":"M116E248B0164","kuanhao":"M116E248","danjia":"1.00","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019010568310459721.jpg","repo_num":147},{"num":1,"sku_id":"4879","sku_name":"腰背夹","sku_detail":"深蓝色 64","tiaoma":"M216C237C0464","kuanhao":"M216C237","danjia":"1.00","img":"https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg","repo_num":196}]}'
         }
         market_service.exchange_order(recharge_param)
         # 更新充值后的验证数据
         self._test_data.update_post_verify_data()
         self._test_data_re.update_post_verify_data()
         # 封装验证值
         self.expectedData(
             0  # 会员消费额
             ,
             0  # 会员积分
             ,
             2  # 会员卡等级
             ,
             0  # 会员余额
             ,
             0  # 总揽到店次数
             ,
             0  # 总揽新增会员数
             ,
             0  # 总揽订单数
             ,
             1  # 总揽退单数
             ,
             0  # 总揽销售总额
             ,
             0  # M216C237C0458总仓库存
             ,
             0  # M216C237C0464总仓库存
             ,
             0  # M116E248B0158总仓库存
             ,
             0  # M116E248B0164总仓库存
             ,
             0  # M316J232B01106总仓库存
             ,
             0  # M316J232B0176总仓库存
             ,
             0  # ZH02B215190T796242总仓库存
             ,
             0  # 验证值
             ,
             1  # M216C237C0458门店库存
             ,
             -1  # M216C237C0464门店库存
             ,
             1  # M116E248B0158门店库存
             ,
             -1  # M116E248B0164门店库存
             ,
             0  # M316J232B01106门店库存
             ,
             0  # M316J232B0176门店库存
             ,
             0  # ZH02B215190T796242门店库存
             ,
             0  # 门店到店次数期待增加值
             ,
             0  # 门店新增会员数期待增加值
             ,
             1  # 门店订单数期待增加值
             ,
             0  # 门店退单数期待增加值
             ,
             0  # 门店销售总额期待增加值
             ,
             0  # 门店平台销售总额期待增加值
         )
         # 封装验证值
         self._customer_re.expectedData = CustomerVerifyData.expected_data(
             0, 0, 0, 0)  # 更新转介绍会员验证值
         # 验证数据
         self._data_assertion()
         self._data_assertion_re()
Exemplo n.º 16
0
    def expectedData(self, total_consume, swap_score, card_level, remainder,
                     global_arrive_store_num, global_newvip_num,
                     global_order_num, global_refund_num, global_sale_num,
                     M216C237C0458MainStoreQuantityRepo,
                     M216C237C0464MainStoreQuantityRepo,
                     M116E248B0158MainStoreQuantityRepo,
                     M116E248B0164MainStoreQuantityRepo,
                     M316J232B01106MainStoreQuantityRepo,
                     M316J232B0176MainStoreQuantityRepo,
                     ZH02B215190T796242MainStoreQuantityRepo, verify,
                     M216C237C0458QuantityRepo, M216C237C0464QuantityRepo,
                     M116E248B0158QuantityRepo, M116E248B0164QuantityRepo,
                     M316J232B01106QuantityRepo, M316J232B0176QuantityRepo,
                     ZH02B215190T796242QuantityRepo, i_store_arrive_store_num,
                     i_store_newvip_num, i_store_order_num, i_store_refund_num,
                     f_store_sale_num, f_store_plat_sale_num):
        self._customer.expectedData = CustomerVerifyData.expected_data(
            total_consume, swap_score, card_level, remainder)  # 更新会员验证值
        # self._global.expectedData = LCGlobalVerifyData.expected_data(global_arrive_store_num, global_newvip_num, global_order_num, global_refund_num, global_sale_num)  # 更新总览验证值

        expected_global_repo = {
            'M216C237C0458': M216C237C0458MainStoreQuantityRepo,
            'M216C237C0464': M216C237C0464MainStoreQuantityRepo,
            'M116E248B0158': M116E248B0158MainStoreQuantityRepo,
            'M116E248B0164': M116E248B0164MainStoreQuantityRepo,
            'M316J232B01106': M316J232B01106MainStoreQuantityRepo,
            'M316J232B0176': M316J232B0176MainStoreQuantityRepo,
            'ZH02B215190T796242': ZH02B215190T796242MainStoreQuantityRepo
        }
        self._global.repository.update_expected_verify_data(
            expected_global_repo)  # 更新总览库存验证值

        expected_area_values = {
            AREA['area_id']: AreaVerifyData.expected_data(verify)
        }
        self._global.update_expected_area_verify_data(
            expected_area_values)  # 更新大区验证值

        self._platform.expectedData = PlatVerifyData.expected_data(
            verify)  # 更新平台验证值
        self._employee.expectedData = EmployeeVerifyData.expected_data(
            verify)  # 更新员工验证值

        expected_store_repo = {
            'M216C237C0458': M216C237C0458QuantityRepo,
            'M216C237C0464': M216C237C0464QuantityRepo,
            'M116E248B0158': M116E248B0158QuantityRepo,
            'M116E248B0164': M116E248B0164QuantityRepo,
            'M316J232B01106': M316J232B01106QuantityRepo,
            'M316J232B0176': M316J232B0176QuantityRepo,
            'ZH02B215190T796242': ZH02B215190T796242QuantityRepo
        }
        self._store.repository.update_expected_verify_data(
            expected_store_repo)  # 更新门店库存验证值

        expected_store_values = {
            STORE['store_id']:
            StoreVerifyData.expected_data(i_store_arrive_store_num,
                                          i_store_newvip_num,
                                          i_store_order_num,
                                          i_store_refund_num, f_store_sale_num,
                                          f_store_plat_sale_num)
        }
        self._area.update_expected_store_verify_data(
            expected_store_values)  # 更新门店验证值
Exemplo n.º 17
0
 def test_2_cancellation_order(self):
     """
     取消支付
     :return:
     """
     logging.debug("test_2_cancellation_order")
     if globals()['shopping_order_id'] is not None:
         market_service.cancellation_of_order(
             globals()['shopping_order_id'])
         # 更新充值后的验证数据
         self._test_data.update_post_verify_data()
         self._referral.update_post_verify_data()
         # 验证值
         self.expectedData(
             -31096  # 会员消费额
             ,
             -31096  # 会员积分
             ,
             2  # 会员卡等级
             ,
             0  # 会员余额
             ,
             0  # 总揽到店次数
             ,
             0  # 总揽新增会员数
             ,
             0  # 总揽订单数
             ,
             0  # 总揽退单数
             ,
             -31096  # 总揽销售总额
             ,
             5  # M216C237C0458总仓库存
             ,
             0  # M216C237C0464总仓库存
             ,
             0  # M116E248B0158总仓库存
             ,
             0  # M116E248B0164总仓库存
             ,
             0  # M316J232B01106总仓库存
             ,
             0  # M316J232B0176总仓库存
             ,
             0  # ZH02B215190T796242总仓库存
             ,
             -3.11  # 验证值
             ,
             5  # M216C237C0458门店库存
             ,
             0  # M216C237C0464门店库存
             ,
             0  # M116E248B0158门店库存
             ,
             0  # M116E248B0164门店库存
             ,
             0  # M316J232B01106门店库存
             ,
             0  # M316J232B0176门店库存
             ,
             0  # ZH02B215190T796242门店库存
             ,
             0  # 门店到店次数期待增加值
             ,
             0  # 门店新增会员数期待增加值
             ,
             0  # 门店订单数期待增加值
             ,
             0  # 门店退单数期待增加值
             ,
             -31096  # 门店销售总额期待增加值
             ,
             -31096  # 门店平台销售总额期待增加值
         )
         self._referral.expectedData = CustomerVerifyData.expected_data(
             0, -31096, 5, 0)
         # 验证数据
         self._data_assertion()
Exemplo n.º 18
0
    def test_4_Combination_and_common_return_other(self):
        """
        组合商品与普通商品pos订单,其余商品退货
        :return:
        """
        logging.debug("test_4_Combination_and_common_return_other")
        if globals()['shopping_order_id'] is not None:
            return_order_id = globals()['shopping_order_id'] + "_2"
            return_order_id_a = globals()['shopping_order_id'] + "_1"
            return_order_id_b = globals()['shopping_order_id'] + "_0"

            return_other = {
                'main_order_id': globals()['shopping_order_id'],
                'return_price': '15532.80',
                'reason': '缺货',
                'remarks': '',
                'afterSales_info[0][order_id]': return_order_id,
                'afterSales_info[0][danjia]': '6400.00',
                'afterSales_info[0][sku_name]': '孟伟组合商品',
                'afterSales_info[0][sku_detail]': '2件商品',
                'afterSales_info[0][tiaoma]': 'ZH02B215190T796242',
                'afterSales_info[0][kuanhao]': '',
                'afterSales_info[0][sku_id]': '5955',
                'afterSales_info[0][img]':
                'https://lchapp.oss-cn-beijing.aliyuncs.com/2019080310765489321.jpg',
                'afterSales_info[0][aftersale_num]': '1',
                'afterSales_info[0][aftersale_money]': '6144.00',
                'afterSales_info[0][goods_type]': '2',
                'afterSales_info[1][order_id]': return_order_id_a,
                'afterSales_info[1][danjia]': '6400.00',
                'afterSales_info[1][sku_name]': '孟伟组合商品',
                'afterSales_info[1][sku_detail]': '2件商品',
                'afterSales_info[1][tiaoma]': 'ZH02B215190T796242',
                'afterSales_info[1][kuanhao]': '',
                'afterSales_info[1][sku_id]': '5955',
                'afterSales_info[1][img]':
                'https://lchapp.oss-cn-beijing.aliyuncs.com/2019080310765489321.jpg',
                'afterSales_info[1][aftersale_num]': '1',
                'afterSales_info[1][aftersale_money]': '6144.00',
                'afterSales_info[1][goods_type]': '2',
                'afterSales_info[2][order_id]': return_order_id_b,
                'afterSales_info[2][danjia]': '3380.00',
                'afterSales_info[2][sku_name]': '腰背夹',
                'afterSales_info[2][sku_detail]': '深蓝色 58',
                'afterSales_info[2][tiaoma]': 'M216C237C0458',
                'afterSales_info[2][kuanhao]': 'M216C237',
                'afterSales_info[2][sku_id]': '4878',
                'afterSales_info[2][img]':
                'https://lchapp.oss-cn-beijing.aliyuncs.com/2019010579241063815.jpg',
                'afterSales_info[2][aftersale_num]': '1',
                'afterSales_info[2][aftersale_money]': '3244.80',
                'afterSales_info[2][goods_type]': '1'
            }
            market_service.return_order(return_other)
            # 更新充值后的验证数据
            self._test_data.update_post_verify_data()
            self._referral.update_post_verify_data()
            # 封装验证值
            self.expectedData(
                -15532  # 会员消费额
                ,
                -15532  # 会员积分
                ,
                2  # 会员卡等级
                ,
                0  # 会员余额
                ,
                0  # 总揽到店次数
                ,
                0  # 总揽新增会员数
                ,
                0  # 总揽订单数
                ,
                1  # 总揽退单数
                ,
                -15532  # 总揽销售总额
                ,
                0  # M216C237C0458总仓库存
                ,
                0  # M216C237C0464总仓库存
                ,
                0  # M116E248B0158总仓库存
                ,
                0  # M116E248B0164总仓库存
                ,
                0  # M316J232B01106总仓库存
                ,
                0  # M316J232B0176总仓库存
                ,
                2  # ZH02B215190T796242总仓库存
                ,
                -1.55  # 验证值
                ,
                7  # M216C237C0458门店库存
                ,
                0  # M216C237C0464门店库存
                ,
                2  # M116E248B0158门店库存
                ,
                0  # M116E248B0164门店库存
                ,
                0  # M316J232B01106门店库存
                ,
                0  # M316J232B0176门店库存
                ,
                0  # ZH02B215190T796242门店库存
                ,
                0  # 门店到店次数期待增加值
                ,
                0  # 门店新增会员数期待增加值
                ,
                0  # 门店订单数期待增加值
                ,
                0  # 门店退单数期待增加值
                ,
                -15532  # 门店销售总额期待增加值
                ,
                -15532  # 门店平台销售总额期待增加值
            )
            self._referral.expectedData = CustomerVerifyData.expected_data(
                0, -15532, 5, 0)
            # 验证数据
            self._data_assertion()