{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160429 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 0x7fb69556ba10>\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 0x7fb68e846d50>)\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 = 75346932127213\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 160429 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": "327969cd-76c8-47c8-8d34-1bebea66a29c-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8e652d61-de91-4570-a037-3b40d07195c6-attachment.json", "type": "application/json"}], "start": 1775346932139, "stop": 1775346932155}, {"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": "7dc5a810-fb14-489e-87ab-ad277e04f8d1-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "59fcaadf-cbf4-4151-94b9-ecb9f5832643-attachment.json", "type": "application/json"}], "start": 1775346936410, "stop": 1775346936410}, {"name": "Response → 200, trace_id: f140d0ef217fc7be461ade2092410baa", "status": "passed", "attachments": [{"name": "response.headers", "source": "0108a3e2-1a00-4dd6-ab4b-0bdcee30174a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "198e56e9-5ac0-4164-9aa8-345e4cdb504d-attachment.json", "type": "application/json"}], "start": 1775346936410, "stop": 1775346936410}], "attachments": [{"name": "cURL", "source": "c052fb94-b355-4dc8-88d2-de3ea997e47a-attachment.txt", "type": "text/plain"}], "start": 1775346936410, "stop": 1775346936410}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775346936414, "stop": 1775346936416}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "c2d2698e-6a4b-45e7-99b6-bd6c63331a5f-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "732f978b-c171-4b6b-a011-adc7a039373f-attachment.json", "type": "application/json"}], "start": 1775346936429, "stop": 1775346936429}, {"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": "468dcdaa-f239-4e8f-9d12-20ca4b77d195-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f376aa60-eac1-4fe6-b42f-b6f1c6146049-attachment.json", "type": "application/json"}], "start": 1775346936477, "stop": 1775346936477}, {"name": "Response → 200, trace_id: 0b207304fadde8abe5724eadb2aae09e", "status": "passed", "attachments": [{"name": "response.headers", "source": "0b2ad7a2-1eaf-461b-86c9-d74992c4f72d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b048e701-9906-4c6d-bb6f-143681468230-attachment.json", "type": "application/json"}], "start": 1775346936477, "stop": 1775346936478}], "attachments": [{"name": "cURL", "source": "31d13c94-81f0-46be-9507-cfcf4e7c2d9d-attachment.txt", "type": "text/plain"}], "start": 1775346936477, "stop": 1775346936478}, {"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": "837387a4-e89b-45bb-a788-9321008c6d00-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "bead5224-75fe-47db-8946-bf5b29085f0e-attachment.json", "type": "application/json"}], "start": 1775346936523, "stop": 1775346936523}, {"name": "Response → 200, trace_id: 1770ab5631f6eefdef0bcf95225930d1", "status": "passed", "attachments": [{"name": "response.headers", "source": "09c7464c-99f1-45a1-a05f-b9b6f6c3dbf2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "85216195-b79d-476b-84a3-6558f663020b-attachment.json", "type": "application/json"}], "start": 1775346936523, "stop": 1775346936523}], "attachments": [{"name": "cURL", "source": "9d4a8433-a360-4a8f-b0d7-d7b4d6e5b351-attachment.txt", "type": "text/plain"}], "start": 1775346936523, "stop": 1775346936523}, {"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": "d41aeb11-d154-46c7-948e-ada0a0413cb3-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "bc30526f-d644-48da-aead-a3bf53240ec1-attachment.json", "type": "application/json"}], "start": 1775346936565, "stop": 1775346936565}, {"name": "Response → 200, trace_id: cfc6af285ff60f260459a23dbf03a5d7", "status": "passed", "attachments": [{"name": "response.headers", "source": "1f4d8915-2bf7-465f-a48d-f1bd6a02555f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7d5a795d-cc0e-478f-88b8-e2262a8ab10b-attachment.json", "type": "application/json"}], "start": 1775346936565, "stop": 1775346936566}], "attachments": [{"name": "cURL", "source": "24b7464a-38e3-4991-aa61-22e717f80949-attachment.txt", "type": "text/plain"}], "start": 1775346936565, "stop": 1775346936566}], "attachments": [{"name": "log", "source": "c13d42bc-7f52-464e-aace-889f679bd10e-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=<DeliveryLastMile.TANAIS: 'TANAIS'>, city_id=<DeliveryCityId.ALIEXPRESS_UZ: 11>, delivery_point_id=<DeliveryPointId.TANAIS: 13>, last_mile_id=<DeliveryLastMileId.TANAIS: 13>, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, assembly_group_id=<AssemblyGroupId.TANAIS: 13>, order_source=<OrderSource.GLOBAL: 'GLOBAL'>, provider_name=<DeliveryLastMile.TANAIS: 'TANAIS'>), 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": 1775346932127, "stop": 1775346985716, "uuid": "ff701c93-1937-4d04-9d82-ff66bc73c6ae", "historyId": "52a82d0caa207f822c2e55cd01219b9e", "testCaseId": "5379fbae3aca09418083203f4b169063", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm_with_deficit", "labels": [{"name": "feature", "value": "Task picking info. Topic wms_be_seller_return_picking_info"}, {"name": "feature", "value": "Task status change. Topic wms_be_seller_return_status_change"}, {"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-gid8mt59"}, {"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"]}