{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160447 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 0x71c371a2d690>\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 0x71c36afcc0d0>)\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 = 75460730595251\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 160447 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": "958d1912-233f-4d1f-a6e0-38f593d2b9bb-attachment.json", "type": "application/json"}, {"name": "Response", "source": "f6e6f1fa-21ce-4d50-ac88-f1b4fd220a56-attachment.json", "type": "application/json"}], "start": 1775460730608, "stop": 1775460730622}, {"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": "09ac7dd9-7e63-4361-a9d9-399587a50b3f-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "c7a52d16-7853-4d33-b43b-b285c00487ba-attachment.json", "type": "application/json"}], "start": 1775460734842, "stop": 1775460734842}, {"name": "Response → 200, trace_id: 9ccc56a8d091d20ce59d8ec8851010b7", "status": "passed", "attachments": [{"name": "response.headers", "source": "b1a3cc2e-7b44-49d6-b73a-8eacd3af3414-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "dbdc9784-92c5-47d3-bdd3-4d1a2738d804-attachment.json", "type": "application/json"}], "start": 1775460734842, "stop": 1775460734842}], "attachments": [{"name": "cURL", "source": "851fada4-f448-465d-ad2a-78a5137ed03a-attachment.txt", "type": "text/plain"}], "start": 1775460734842, "stop": 1775460734842}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775460734846, "stop": 1775460734847}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "c5d12dea-6a67-4eb1-8dc0-0bb99e303dad-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "d0f00735-0803-416a-a199-a647150dd0ec-attachment.json", "type": "application/json"}], "start": 1775460734862, "stop": 1775460734862}, {"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": "49db0a87-cae2-4070-ab81-f77c3e59fb7f-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "18a2f1c6-1986-424a-acbe-aa66432360b7-attachment.json", "type": "application/json"}], "start": 1775460734911, "stop": 1775460734911}, {"name": "Response → 200, trace_id: b98fce21b2655fe3427dfb66e2f0815a", "status": "passed", "attachments": [{"name": "response.headers", "source": "0409f0ad-0920-4ce8-ac11-d84ba271327c-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7d10520a-3c6a-4b17-8b34-bd42166278a5-attachment.json", "type": "application/json"}], "start": 1775460734911, "stop": 1775460734911}], "attachments": [{"name": "cURL", "source": "68141ab6-5d7f-44eb-928f-9d481f598401-attachment.txt", "type": "text/plain"}], "start": 1775460734911, "stop": 1775460734912}, {"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": "adb2a169-73d9-4552-ab74-49644b25f523-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a37b9baa-fa4a-4a62-abe7-77982e00a1b5-attachment.json", "type": "application/json"}], "start": 1775460734958, "stop": 1775460734958}, {"name": "Response → 200, trace_id: d296dc4601b320ac32631e85e356b020", "status": "passed", "attachments": [{"name": "response.headers", "source": "c5685379-13ae-4bc5-af36-f7f0b1c90a81-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a982d006-ae35-49a4-8278-b2c3dde9ccb4-attachment.json", "type": "application/json"}], "start": 1775460734958, "stop": 1775460734958}], "attachments": [{"name": "cURL", "source": "0b4b009d-5e1a-4825-8bfd-22d1ce9f3d8a-attachment.txt", "type": "text/plain"}], "start": 1775460734958, "stop": 1775460734959}, {"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": "87092e8d-5b13-4b32-80b5-9d3250e0fb76-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "0e7e8037-d3c1-4962-97b4-bb653a063d08-attachment.json", "type": "application/json"}], "start": 1775460735000, "stop": 1775460735000}, {"name": "Response → 200, trace_id: e73074d1c6d6ae9ca1b5ebc8f3d9858e", "status": "passed", "attachments": [{"name": "response.headers", "source": "1589d436-0f04-4ca6-843d-5b9ad1b13b6d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0e0af00d-84cf-4938-ba5b-9d469447989f-attachment.json", "type": "application/json"}], "start": 1775460735000, "stop": 1775460735001}], "attachments": [{"name": "cURL", "source": "78791239-bd0b-4ee2-99d2-1f665ffb923d-attachment.txt", "type": "text/plain"}], "start": 1775460735000, "stop": 1775460735001}], "attachments": [{"name": "log", "source": "bdefb1f8-c5f3-44f1-9dd4-d415fe499f24-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": 1775460730595, "stop": 1775460784155, "uuid": "c71b0aad-48fb-4cb8-b6ce-3939c94ab298", "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-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"]}