{"name": "test_task_confirm_with_deficit[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160441 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 0x7f0194ed8510>\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 0x7f018df43d10>)\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 = 75432918917339\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 160441 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": "29242917-67c4-4339-8c69-af7241c2cdf2-attachment.json", "type": "application/json"}, {"name": "Response", "source": "6cec883c-1bad-443b-b2d6-c6686982453d-attachment.json", "type": "application/json"}], "start": 1775432918929, "stop": 1775432918945}, {"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": "e92665f5-1c4a-4a44-b838-745fa1d3faf2-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1a58b010-6b3e-4ae2-adc8-a01951876dea-attachment.json", "type": "application/json"}], "start": 1775432923163, "stop": 1775432923163}, {"name": "Response → 200, trace_id: 3ccb1b5c0c0cad5764147032380f1358", "status": "passed", "attachments": [{"name": "response.headers", "source": "01c4dd2a-e501-472e-a6e0-73d989ad2534-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0980e20e-ba4a-4a37-a4f8-31b39b913e56-attachment.json", "type": "application/json"}], "start": 1775432923163, "stop": 1775432923163}], "attachments": [{"name": "cURL", "source": "0e83488a-d716-4e59-b112-5edb49bbba88-attachment.txt", "type": "text/plain"}], "start": 1775432923163, "stop": 1775432923163}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775432923167, "stop": 1775432923169}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "d18f8fd2-39ee-44cb-b511-6021e8487d80-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "a93df2b1-7e30-4ba7-9300-b062ab5d1927-attachment.json", "type": "application/json"}], "start": 1775432923183, "stop": 1775432923184}, {"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": "58845afc-7c81-4c80-9fb4-77f1121745a4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1296deb6-a690-4692-b915-e6dd356d37ef-attachment.json", "type": "application/json"}], "start": 1775432923234, "stop": 1775432923235}, {"name": "Response → 200, trace_id: 9746bc08a51405537425471523ffc243", "status": "passed", "attachments": [{"name": "response.headers", "source": "a0149777-c834-4e53-b176-be5f617f982f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "483c8c62-ff17-4540-abd5-0fb9591683ab-attachment.json", "type": "application/json"}], "start": 1775432923235, "stop": 1775432923235}], "attachments": [{"name": "cURL", "source": "1a2dd817-7e7c-4169-aa85-aeb49c87f563-attachment.txt", "type": "text/plain"}], "start": 1775432923234, "stop": 1775432923235}, {"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": "28873eaf-8e4e-4417-b7bf-cfba8c4294e2-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a23ebf88-df1d-4bd8-b0a8-6530d531d030-attachment.json", "type": "application/json"}], "start": 1775432923284, "stop": 1775432923284}, {"name": "Response → 200, trace_id: 4fa17424d7dc6ca2b5b09932b2afd60b", "status": "passed", "attachments": [{"name": "response.headers", "source": "b2354a85-0607-4e42-9afa-52b12c96fbce-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f65b88d5-0ff1-4505-9b29-27fc098e6294-attachment.json", "type": "application/json"}], "start": 1775432923284, "stop": 1775432923285}], "attachments": [{"name": "cURL", "source": "52e3436a-c3e2-430b-a39c-8bf95d44262d-attachment.txt", "type": "text/plain"}], "start": 1775432923284, "stop": 1775432923285}, {"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": "71dac87e-cc08-4c3c-a013-fd51e9d9c26e-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "ddd5b8b6-7da5-4100-ace2-15202d79a87e-attachment.json", "type": "application/json"}], "start": 1775432923324, "stop": 1775432923324}, {"name": "Response → 200, trace_id: 3cefe0f4375f489a581f5b5d628b9a41", "status": "passed", "attachments": [{"name": "response.headers", "source": "82ee0549-13ff-4d99-8ed7-b9c96a1bc112-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2f3da0dc-e42c-47af-812d-739fbe6b6345-attachment.json", "type": "application/json"}], "start": 1775432923324, "stop": 1775432923325}], "attachments": [{"name": "cURL", "source": "5873b206-815b-4a30-b08f-75a53bde35f7-attachment.txt", "type": "text/plain"}], "start": 1775432923324, "stop": 1775432923325}], "attachments": [{"name": "log", "source": "476196a3-a49f-452f-9bd7-a0ddab4e39c2-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": 1775432918917, "stop": 1775432972479, "uuid": "3fc8dc9d-ff2a-49ad-8eeb-d66ada2bb105", "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 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-a1dh9731"}, {"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"]}