{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160435 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 0x70d884d31d10>\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 0x70d87d6c5910>)\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 = 75411584039564\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 160435 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": "30ef01a4-5be7-42ed-9dee-4311fb2cbc84-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8fc02804-6d45-43b4-9ebd-ad966be1d525-attachment.json", "type": "application/json"}], "start": 1775411584051, "stop": 1775411584066}, {"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": "4240a44b-20d1-44db-8646-e089bb5782b6-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "d160eda5-1902-4b4e-b971-cdefed62a698-attachment.json", "type": "application/json"}], "start": 1775411588339, "stop": 1775411588339}, {"name": "Response → 200, trace_id: b5c500c35f56b0437fd6dee847190487", "status": "passed", "attachments": [{"name": "response.headers", "source": "15f6cf80-38d9-420b-8a8f-7737114bf5cb-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "de86f7d1-fe34-46cf-bc77-f9392fc4f0df-attachment.json", "type": "application/json"}], "start": 1775411588339, "stop": 1775411588339}], "attachments": [{"name": "cURL", "source": "d81fcec7-3e16-486c-92f4-df05274f99af-attachment.txt", "type": "text/plain"}], "start": 1775411588339, "stop": 1775411588339}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775411588342, "stop": 1775411588344}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "66c5bead-4457-4be2-abf3-b3e2ed231d8d-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "170d7f54-f898-4960-935e-df658f2466a2-attachment.json", "type": "application/json"}], "start": 1775411588359, "stop": 1775411588359}, {"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": "0bc43840-624a-4ab6-a6c9-af3e0989b967-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "de25990a-6c4a-49cc-b622-53213199c9b2-attachment.json", "type": "application/json"}], "start": 1775411588405, "stop": 1775411588406}, {"name": "Response → 200, trace_id: 30cae127a26d33bd80f85dec1ac397ea", "status": "passed", "attachments": [{"name": "response.headers", "source": "6e520d61-1ab9-4058-94d7-1b718a74c205-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "668e65db-aeca-44f7-9942-9fe22718c217-attachment.json", "type": "application/json"}], "start": 1775411588406, "stop": 1775411588406}], "attachments": [{"name": "cURL", "source": "56363ad0-db42-4565-a198-3778e14bd22c-attachment.txt", "type": "text/plain"}], "start": 1775411588405, "stop": 1775411588406}, {"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": "437b8fca-6bb1-48a8-a610-ebf293acd7cf-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "176d9ad1-5f54-4bdd-b2ec-0f3f9d6dd3bf-attachment.json", "type": "application/json"}], "start": 1775411588450, "stop": 1775411588451}, {"name": "Response → 200, trace_id: 31d1292d62983cccbbcb033ae6ba0c58", "status": "passed", "attachments": [{"name": "response.headers", "source": "83453285-9c0f-4b6d-a04a-10504a65ac1d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "832bd0b3-09f8-4628-b7e7-92beed7eec6e-attachment.json", "type": "application/json"}], "start": 1775411588451, "stop": 1775411588451}], "attachments": [{"name": "cURL", "source": "fe535c21-bf65-4ba5-8b6a-bdfa36615710-attachment.txt", "type": "text/plain"}], "start": 1775411588450, "stop": 1775411588451}, {"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": "65fecb5d-8938-4ab2-be34-3fbfa511acf2-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "2a26d2e1-7431-4cea-ace6-cbe87fb83135-attachment.json", "type": "application/json"}], "start": 1775411588492, "stop": 1775411588493}, {"name": "Response → 200, trace_id: 12bbcd38d6ae4cb6145b567306403191", "status": "passed", "attachments": [{"name": "response.headers", "source": "ed9d1c91-2024-46c1-96af-cac8cf1400f5-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ce891acc-c4aa-42d7-8a10-2c6ae1fe2055-attachment.json", "type": "application/json"}], "start": 1775411588493, "stop": 1775411588493}], "attachments": [{"name": "cURL", "source": "b233b222-4828-4c65-971b-5abc8aa5b89f-attachment.txt", "type": "text/plain"}], "start": 1775411588492, "stop": 1775411588493}], "attachments": [{"name": "log", "source": "e41bf5b6-7b20-49fc-8007-fb23ac2f022b-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": 1775411584039, "stop": 1775411637645, "uuid": "ea2cebe7-dd54-4110-b89b-42d89ac0ebc4", "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-08kw48s6"}, {"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"]}