{"name": "test_task_confirm_with_deficit[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160446 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 0x71c371a2d410>\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 0x71c36978cbd0>)\norder_type = <WMSOrderType.B2B: 'B2B'>\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 = 75460675438116\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 160446 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": "a0fec512-c062-4943-bc7a-dae63e8f2e85-attachment.json", "type": "application/json"}, {"name": "Response", "source": "3e115db5-4278-45cc-8bdb-1d580bef7b5f-attachment.json", "type": "application/json"}], "start": 1775460675449, "stop": 1775460675464}, {"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": "4e0408dc-4ba7-448e-b5ca-460f6c35c425-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6fc82eed-c828-453c-991b-bc82a7b4a55a-attachment.json", "type": "application/json"}], "start": 1775460679724, "stop": 1775460679724}, {"name": "Response → 200, trace_id: da16a22c5a356e0761f814cdd349bdb8", "status": "passed", "attachments": [{"name": "response.headers", "source": "28bac873-4316-42d0-a619-cde8e73c4314-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "76407864-2135-4de5-9cf1-49a747c551c7-attachment.json", "type": "application/json"}], "start": 1775460679724, "stop": 1775460679724}], "attachments": [{"name": "cURL", "source": "ae2acc08-aa52-44bc-bd2c-df864c67ae93-attachment.txt", "type": "text/plain"}], "start": 1775460679723, "stop": 1775460679724}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775460679728, "stop": 1775460679730}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "d0f16e65-4225-465f-83c8-990972c7c5dd-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "03776ddd-affe-47b0-8400-510b7c90a6d0-attachment.json", "type": "application/json"}], "start": 1775460679743, "stop": 1775460679743}, {"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": "95539c26-123a-43e4-a16c-2e2a7efcbcc4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "be15ac2e-37df-4c94-a890-2e74db772d17-attachment.json", "type": "application/json"}], "start": 1775460679789, "stop": 1775460679790}, {"name": "Response → 200, trace_id: 1fc865548c1bc4ddee3527918e7f1510", "status": "passed", "attachments": [{"name": "response.headers", "source": "6b7a4fe1-cf71-40e4-a6a2-f83e1b2b9807-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f6e8d308-98eb-484c-86ae-51f9b4167b9d-attachment.json", "type": "application/json"}], "start": 1775460679790, "stop": 1775460679790}], "attachments": [{"name": "cURL", "source": "c4b0c5ed-3ec5-410f-adc6-e89ad4d24067-attachment.txt", "type": "text/plain"}], "start": 1775460679789, "stop": 1775460679790}, {"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": "45ec84f0-8077-41ee-a92d-848f72b606fa-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "3c848fa5-cbfa-408b-a6cb-b658aab4ea2d-attachment.json", "type": "application/json"}], "start": 1775460679832, "stop": 1775460679833}, {"name": "Response → 200, trace_id: 013808c4f0bb8f73a9a809ffd6aba592", "status": "passed", "attachments": [{"name": "response.headers", "source": "ed8f3061-c5eb-4411-9889-0feac52d4645-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c44a7354-5bc2-4b24-80f4-061607e2a805-attachment.json", "type": "application/json"}], "start": 1775460679833, "stop": 1775460679833}], "attachments": [{"name": "cURL", "source": "34ea63b3-d47f-4039-ba8b-38a0e3e5e0b7-attachment.txt", "type": "text/plain"}], "start": 1775460679832, "stop": 1775460679833}, {"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": "aa98e86d-205a-4829-949e-675b0ff6ff45-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "485328fa-a6dc-406e-a3d2-a5d6b73286ff-attachment.json", "type": "application/json"}], "start": 1775460679875, "stop": 1775460679875}, {"name": "Response → 200, trace_id: 3116b3a45a3644078de342287752e9ba", "status": "passed", "attachments": [{"name": "response.headers", "source": "11205155-49d6-42da-9fd8-09776c48b05d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "66fb2196-3084-42f0-b9d0-e898109bf491-attachment.json", "type": "application/json"}], "start": 1775460679875, "stop": 1775460679875}], "attachments": [{"name": "cURL", "source": "5b9dc88f-4b92-4f18-aa6e-8df16bfa96d5-attachment.txt", "type": "text/plain"}], "start": 1775460679874, "stop": 1775460679875}], "attachments": [{"name": "log", "source": "8d07bb6e-88b2-478b-b4f4-050485cfc47c-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": "'B2B'"}], "start": 1775460675438, "stop": 1775460729029, "uuid": "dbf0ae73-8a70-424f-b291-8c52f0df2261", "historyId": "d76369ddd5489d74f8eaeda23aac93c9", "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-seh3rk1b"}, {"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"]}