{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160465 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 0x7198cbd7f290>\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 0x7198bba9e550>)\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 = 75692139090109\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 160465 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": "506666c1-eeb7-4dc9-a7f3-7ff6d1ef0ccd-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c6db2d2e-04c9-4b97-bf15-8fc3c269cb40-attachment.json", "type": "application/json"}], "start": 1775692139101, "stop": 1775692139118}, {"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": "68b4b0fb-9cbb-460f-a51b-20b044a87cd3-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "04f32981-1a9e-4aa2-abbe-f015031cf65f-attachment.json", "type": "application/json"}], "start": 1775692143910, "stop": 1775692143910}, {"name": "Response → 200, trace_id: d1917f2d313599edcfef19651a94b28e", "status": "passed", "attachments": [{"name": "response.headers", "source": "fe9aac7d-6dc5-4a57-b03c-c70a2293a543-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c4bc6b0f-56fb-4db0-878a-63de2f7fe250-attachment.json", "type": "application/json"}], "start": 1775692143910, "stop": 1775692143910}], "attachments": [{"name": "cURL", "source": "03b17818-b257-46d9-b7c3-f68386cab7d9-attachment.txt", "type": "text/plain"}], "start": 1775692143910, "stop": 1775692143910}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775692143914, "stop": 1775692143916}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "9fcd742a-e745-4573-b734-3493fe9c2118-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "52c53d78-bf64-4acc-931c-cc1d86dda18e-attachment.json", "type": "application/json"}], "start": 1775692143930, "stop": 1775692143931}, {"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": "a6fad31c-9fe7-4976-94e1-20a4704b265b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "c861395d-7990-46c3-bf7d-982f5bd6bb25-attachment.json", "type": "application/json"}], "start": 1775692143980, "stop": 1775692143980}, {"name": "Response → 200, trace_id: 443e99c3d8c7cd323810b01e65e3b205", "status": "passed", "attachments": [{"name": "response.headers", "source": "0c9b5ea0-de9a-442c-8f96-68a8c80b1cb9-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e91af9f9-5761-4044-92de-2c334c5b6e23-attachment.json", "type": "application/json"}], "start": 1775692143980, "stop": 1775692143980}], "attachments": [{"name": "cURL", "source": "799b5fb8-c24f-4a91-a352-ba9546d8b0ea-attachment.txt", "type": "text/plain"}], "start": 1775692143980, "stop": 1775692143980}, {"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": "1e027387-fa26-4869-b9c6-687cbebd0bdb-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "fa5e5348-c10c-4af6-90cc-f9e83a149ebc-attachment.json", "type": "application/json"}], "start": 1775692144027, "stop": 1775692144027}, {"name": "Response → 200, trace_id: 8c7a409e33685a0e616528160fdf4cc2", "status": "passed", "attachments": [{"name": "response.headers", "source": "394bf8b0-52c0-4407-8b54-3a9f29671e3f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "9719725f-a858-4ef9-8380-0f382dd0eed8-attachment.json", "type": "application/json"}], "start": 1775692144027, "stop": 1775692144027}], "attachments": [{"name": "cURL", "source": "0d159e67-7433-4d81-a9a5-179b5218bed5-attachment.txt", "type": "text/plain"}], "start": 1775692144027, "stop": 1775692144027}, {"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": "c9aa9893-dc4c-484f-b5f9-82768dea11d7-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "dea0f4f8-f57d-4de0-a1f9-2310a2031ff4-attachment.json", "type": "application/json"}], "start": 1775692144070, "stop": 1775692144071}, {"name": "Response → 200, trace_id: ff7ec18185188402d60191213c95b360", "status": "passed", "attachments": [{"name": "response.headers", "source": "53ea2e00-2bf2-49c7-a5d2-a7d8b1fdc167-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d8d602fe-380b-4a68-88ce-e9782c38df9c-attachment.json", "type": "application/json"}], "start": 1775692144071, "stop": 1775692144071}], "attachments": [{"name": "cURL", "source": "6d17068b-449a-49eb-8f78-0182f989aa58-attachment.txt", "type": "text/plain"}], "start": 1775692144070, "stop": 1775692144071}], "attachments": [{"name": "log", "source": "19b48f22-0d85-4683-8edc-6409c742b7bf-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": 1775692139090, "stop": 1775692193222, "uuid": "4c2a7159-33ae-49b5-a46f-92ddfa9051cf", "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 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-zefpifhd"}, {"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"]}