{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160459 in wrong status: CREATED\nassert 'CREATED' == 'ASSEMBLED'\n  \n  - ASSEMBLED\n  + CREATED", "trace": "self = <tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask object at 0x7ef68b67aad0>\nwms_warehouse_stocks = WMSProviderWarehouseStockDTO(warehouse=WMSWarehouse(id=1693627, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, ff...=None), provider=None, stocks=<src.framework.wms.builders.availability.stock.WMSStockBuilder object at 0x7ef68896e590>)\norder_type = <WMSOrderType.SELLER_RETURN: 'SELLER_RETURN'>\n\n    @allure.feature(f\"Task status change. Topic {KafkaTopics.wms_be_seller_return_status_change}\")\n    @allure.feature(f\"Task picking info. Topic {KafkaTopics.wms_be_seller_return_picking_info}\")\n    @pytest.mark.parametrize(\"order_type\", [WMSOrderType.B2B, WMSOrderType.SELLER_RETURN])\n    def test_task_confirm_with_deficit(self, wms_warehouse_stocks: DTO, order_type):\n        for item in wms_warehouse_stocks.stocks.items:\n            item.qty += 10\n        (\n            WMSOutboundB2BBuilder(\n                warehouse=wms_warehouse_stocks.warehouse,\n                order_type=order_type,\n                headers=wms_warehouse_stocks.stocks.headers,\n            )\n            .set_items(wms_warehouse_stocks.stocks.items)\n            .set_return_gate(free_cells_count=len(wms_warehouse_stocks.stocks.items))\n            .create_wms_b2b_task()\n            .check_wms_b2b_task()\n            .create_assembly_wave(wave_size=1)\n>           .outbound_picking()\n             ^^^^^^^^^^^^^^^^^^\n            .clear_worker_tasks(user=wms_warehouse_stocks.stocks.user)\n            .return_cell_placing()\n            .bind_to_return_gate()\n            .workflow_stage_to_pallets_task_create()\n            .pallet_placing()\n            .workflow_stage_to_gate_task_create()\n            .pallet_moving()\n            .workflow_stage_to_car_task_create()\n            .load_into_car()\n            .confirm_task()\n        )\n\ntests/wms/test_b2b_seller_return/test_b2b_task.py:72: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/wms/builders/outbound_b2b.py:212: in outbound_picking\n    wait_task_items_by_task_id(task_id=self.data.task_id, status=B2BSellerReturnTaskItemStatus.ASSEMBLED)\n/usr/local/lib/python3.11/site-packages/retrying.py:55: in wrapped_f\n    return Retrying(*dargs, **dkw).call(f, *args, **kw)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/retrying.py:289: in call\n    raise attempt.get()\n          ^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/retrying.py:326: in get\n    raise exc.with_traceback(tb)\n/usr/local/lib/python3.11/site-packages/retrying.py:273: in call\n    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)\n                      ^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ntask_id = 75605713474168\nstatus = <B2BSellerReturnTaskItemStatus.ASSEMBLED: 'ASSEMBLED'>\n\n    @retry(stop_max_attempt_number=5, wait_fixed=1000)\n    def wait_task_items_by_task_id(task_id: int = None, status: B2BSellerReturnTaskItemStatus = None):\n        items = B2BSellerReturnQueries().get_task_items_by_task(task_id=task_id)\n        for item in items:\n            if status is not None:\n>               assert item.status == status.name, f\"task item {item.id} in wrong status: {item.status}\"\nE               AssertionError: task item 160459 in wrong status: CREATED\nE               assert 'CREATED' == 'ASSEMBLED'\nE                 \nE                 - ASSEMBLED\nE                 + CREATED\n\nsrc/framework/wms/validation/waiters/b2b_seller_return/task_item.py:12: AssertionError"}, "steps": [{"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/ff/publish/invoice/seller-return", "status": "passed", "attachments": [{"name": "Request", "source": "8701432f-0c7d-46e6-b1ed-ef0b63be3982-attachment.json", "type": "application/json"}, {"name": "Response", "source": "2ac1c576-ac3b-40f7-b216-cbc2d2460e67-attachment.json", "type": "application/json"}], "start": 1775605713486, "stop": 1775605713501}, {"name": "POST → https://dm-wms-be-service-b2b.k8s-review.dailymail-tech.uz/api/v1/b2b/waves/create", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "af6130af-0d82-4903-b82a-d4fa1e230c3e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "0d9143f3-6f95-46fe-98c6-146d6872826b-attachment.json", "type": "application/json"}], "start": 1775605717794, "stop": 1775605717794}, {"name": "Response → 200, trace_id: 47f5c0b575a35f9a64cddad7da0c6423", "status": "passed", "attachments": [{"name": "response.headers", "source": "1b67ad56-12fd-4d49-908b-804811879384-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7013a8a7-26ad-4287-9f1c-0608c16df96f-attachment.json", "type": "application/json"}], "start": 1775605717794, "stop": 1775605717794}], "attachments": [{"name": "cURL", "source": "05cd1eaa-1067-4610-8287-25d1536957da-attachment.txt", "type": "text/plain"}], "start": 1775605717794, "stop": 1775605717794}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775605717798, "stop": 1775605717800}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "ca83c9d5-1a25-4b99-ab08-4043df594d8b-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "31be9119-3644-4755-9959-55403ab2df2f-attachment.json", "type": "application/json"}], "start": 1775605717815, "stop": 1775605717815}, {"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/api/v1/account/set-worker-location", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "88a41da3-c17b-411f-abb2-de8c9084b497-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "d60a4eae-9990-4a91-bba3-e448de5bef31-attachment.json", "type": "application/json"}], "start": 1775605717864, "stop": 1775605717865}, {"name": "Response → 200, trace_id: ac25535207d81cea7f6ba0cc8cfdf9da", "status": "passed", "attachments": [{"name": "response.headers", "source": "0d0a67d2-e1c6-40d3-8ede-831571733e13-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "bd203feb-2371-4e5d-968a-ec67f8d01e52-attachment.json", "type": "application/json"}], "start": 1775605717865, "stop": 1775605717865}], "attachments": [{"name": "cURL", "source": "087d87bc-10f6-4568-ba9b-0838617972c0-attachment.txt", "type": "text/plain"}], "start": 1775605717864, "stop": 1775605717865}, {"name": "POST → https://dm-wms-be-service-assembly.k8s-review.dailymail-tech.uz/picking/task-for-wave", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "2455a346-451f-48ce-8cab-c49de586124b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "df3b689e-8dd2-45fe-b56f-1677cd435c47-attachment.json", "type": "application/json"}], "start": 1775605717912, "stop": 1775605717913}, {"name": "Response → 200, trace_id: 1b8bff271db6a0b99f07050540a6d0ac", "status": "passed", "attachments": [{"name": "response.headers", "source": "ebb52acd-3c8f-4e40-8884-73bbd1706eed-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f2bd5431-1048-48b5-b2d7-f6e56b54d495-attachment.json", "type": "application/json"}], "start": 1775605717913, "stop": 1775605717913}], "attachments": [{"name": "cURL", "source": "0df2ef02-2ab3-46f0-bdd9-b8d224c62e6a-attachment.txt", "type": "text/plain"}], "start": 1775605717912, "stop": 1775605717913}, {"name": "GET → https://dm-wms-be-service-assembly.k8s-review.dailymail-tech.uz/picking/task", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "f28a1262-8891-4d45-915e-62637c1002db-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "abc1436a-9b5e-4808-ad41-7ea8b3b80a37-attachment.json", "type": "application/json"}], "start": 1775605717953, "stop": 1775605717954}, {"name": "Response → 200, trace_id: 02cae9c2df51b48fbefa43ef3dfb8af5", "status": "passed", "attachments": [{"name": "response.headers", "source": "614c33b5-92ef-4995-86da-1254432ae708-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "278f13e2-d1c7-457b-b2af-9b3c85c887a7-attachment.json", "type": "application/json"}], "start": 1775605717954, "stop": 1775605717954}], "attachments": [{"name": "cURL", "source": "3edf63c1-c806-47d0-b98d-e9ec2384e2bb-attachment.txt", "type": "text/plain"}], "start": 1775605717953, "stop": 1775605717954}], "attachments": [{"name": "log", "source": "acf0fc4b-a40b-4ab3-bebe-13a9a91eb078-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "wms_warehouses", "value": "WMSWarehouse(id=1693627, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, ff_id='WH_TASHKENT', hub_last_mile_id=0, providers=[WMSProvider(last_mile='YaMarket', city_id=<DeliveryCityId.ALIEXPRESS_UZ: 11>, delivery_point_id=<DeliveryPointId.ALIEXPRESS_UZ: 12>, last_mile_id=<DeliveryLastMileId.ALIEXPRESS_UZ: 12>, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, assembly_group_id=<AssemblyGroupId.ALIEXPRESS_UZ: 12>, order_source=<OrderSource.YaMarket: 'YaMarket'>, provider_name='YaMarket')], name='Uzbekistan', description='Бонд Узбекистан', use_datamatrix=False, user=WMSAccount(wms_id=33349, phone='3335000010', role_wms_id=23, zone_id=None, patronymic=None, last_name='', password='1234', first_name='', token='', refresh_token=''), storage_cell=<StorageCells.MA1_1_1_01: 'MA1-1-1-01'>, defected_cell=<DefectedCells.BR_01_01_1_05: 'BR-01-01-1-05'>, overage_cell=<OverageCells.IZ_1_01_01_1_05: 'IZ-1-01-01-1-05'>, weighing_cell=<WeighingCells.WT_1_11_1: 'WT-1-01-1'>, packing_table=<PackingTable.UP_AUTOTEST_01: 'UP-AUTOTEST-01'>, packing_zone_id='', qa_zone=<WMSZoneIds.QA_UZ_ZONE: 31>, email=None, phone=None)"}, {"name": "order_type", "value": "'SELLER_RETURN'"}], "start": 1775605713474, "stop": 1775605767119, "uuid": "ce44b27d-5d87-4440-a1fe-9192dcc99d2e", "historyId": "a3a507db3af153be37458e2d8b3add95", "testCaseId": "5379fbae3aca09418083203f4b169063", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm_with_deficit", "labels": [{"name": "feature", "value": "Task status change. Topic wms_be_seller_return_status_change"}, {"name": "feature", "value": "Task picking info. Topic wms_be_seller_return_picking_info"}, {"name": "tag", "value": "dm-wms-be-service-b2b"}, {"name": "parentSuite", "value": "tests.wms.test_b2b_seller_return"}, {"name": "suite", "value": "test_b2b_task"}, {"name": "subSuite", "value": "TestB2BTask"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-5-tf3sk45l"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.wms.test_b2b_seller_return.test_b2b_task"}], "titlePath": ["tests", "wms", "test_b2b_seller_return", "test_b2b_task.py", "TestB2BTask"]}