{"name": "test_invoice_batch_upload_set_invoice_status_acceptance_in_progress", "status": "failed", "statusDetails": {"message": "AssertionError: Data in LK and in acceptance are not the same\nassert {'iterable_it...0016906', 9)}} == {}\n  \n  Left contains 1 more item:\n  {'iterable_item_removed': {'root[0]': ('4100000000000016907', 2),\n                             'root[1]': ('4100000000000016908', 6),\n                             'root[2]': ('4100000000000016906', 9)}}\n  \n  Full diff:\n  - {}\n  + {\n  +     'iterable_item_removed': {\n  +         'root[0]': (\n  +             '4100000000000016907',\n  +             2,\n  +         ),\n  +         'root[1]': (\n  +             '4100000000000016908',\n  +             6,\n  +         ),\n  +         'root[2]': (\n  +             '4100000000000016906',\n  +             9,\n  +         ),\n  +     },\n  + }", "trace": "self = <tests.fmcg.test_lk.test_integration.TestIntegrationWithAcceptanceService object at 0x7c8883d3fd50>\ncreate_fmcg_sku_by_batch = LKBatchDTO(headers={'Authorization': 'Bearer 457be9f1-501c-40cd-9aa5-a96051877696'}, batch_data=[{'barcode': '62669764...type': 'Тест-коробка', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'string0022', 'brand': '060122'}])\n\n    def test_invoice_batch_upload_set_invoice_status_acceptance_in_progress(self, create_fmcg_sku_by_batch):\n        \"\"\"\n        Создаем заявку загрузкой через файл. Перемещаем инвойс до статуса 'Получено складом' ('Acceptance in progress')\n        Ожидаемый результат: заявку в статусе 'Acceptance in progress' попала в сервис Acceptance\n        \"\"\"\n        barcodes = [sku.get(\"barcode\") for sku in create_fmcg_sku_by_batch.batch_data]\n        sku_ids_and_barcodes = FMCGLKSupplyQueries().get_sku_id_and_barcode_by_barcode(barcodes)\n        invoice_data = [\n            FMCGInvoiceBatch(sku_id=str(sku.get(\"sku_id\")), barcode=sku.get(\"barcode\")).model_dump()\n            for sku in sku_ids_and_barcodes\n        ]\n        assert FMCGInvoiceBuilder(headers=create_fmcg_sku_by_batch.headers).batch_upload(\n            invoice_data\n        ), \"Invoice batch upload failed\"\n        invoice_number = FMCGLKSupplyQueries().get_invoice_status_by_barcode(barcodes[0]).get(\"invoice_number\")\n        assert invoice_number is not None, \"Invoice number is None\"\n    \n        initial_builder = FMCGInvoiceBuilder(headers=create_fmcg_sku_by_batch.headers)\n    \n        assert (\n            initial_builder.get_invoice(invoice_number).current_status == FMCGLkInvoiceStatuses.CREATED\n        ), \"Invoice status isn't CREATED\"\n    \n        assert (\n            initial_builder.update_invoice(invoice_number=invoice_number).current_status == FMCGLkInvoiceStatuses.READY\n        )\n        assert (\n            initial_builder.send_invoice(invoice_number=invoice_number).current_status\n            == FMCGLkInvoiceStatuses.ACCEPTANCE_IN_PROGRESS\n        ), \"Invoice is not in the 'Acceptance in Progress' status\"\n    \n        original_invoice_number = initial_builder.invoice.original_invoice_number\n    \n        invoice_data_in_acceptance = (\n            IntegrationWithAcceptanceBuilder(headers=create_fmcg_sku_by_batch.headers)\n            .get_invoice(original_invoice_number)\n            .invoice_data\n        )\n        assert invoice_data_in_acceptance.status == \"CREATED\"\n        assert (\n            invoice_data_in_acceptance.car_license_plate\n            == initial_builder.get_invoice(invoice_number).invoice.vehicle_number\n        )\n    \n        # TO-DO: Добавить item.barcode в проверку данных в LK и в Acceptance\n        lk_data_in_cart = sorted(\n            [\n                (item.sku_id, item.quantity)\n                for item in FMCGCartBuilder(headers=create_fmcg_sku_by_batch.headers)\n                .get_cart_by_invoice_number(invoice_number)\n                .current_cart\n            ],\n            key=lambda x: x[1],\n        )\n        acceptance_data = sorted(\n            [(str(item.sku_id), item.expected_amount) for item in invoice_data_in_acceptance.items],\n            key=lambda x: x[1],\n        )\n>       assert DeepDiff(lk_data_in_cart, acceptance_data) == {}, \"Data in LK and in acceptance are not the same\"\nE       AssertionError: Data in LK and in acceptance are not the same\nE       assert {'iterable_it...0016906', 9)}} == {}\nE         \nE         Left contains 1 more item:\nE         {'iterable_item_removed': {'root[0]': ('4100000000000016907', 2),\nE                                    'root[1]': ('4100000000000016908', 6),\nE                                    'root[2]': ('4100000000000016906', 9)}}\nE         \nE         Full diff:\nE         - {}\nE         + {\nE         +     'iterable_item_removed': {\nE         +         'root[0]': (\nE         +             '4100000000000016907',\nE         +             2,\nE         +         ),\nE         +         'root[1]': (\nE         +             '4100000000000016908',\nE         +             6,\nE         +         ),\nE         +         'root[2]': (\nE         +             '4100000000000016906',\nE         +             9,\nE         +         ),\nE         +     },\nE         + }\n\ntests/fmcg/test_lk/test_integration.py:113: AssertionError"}, "description": "\n        Создаем заявку загрузкой через файл. Перемещаем инвойс до статуса 'Получено складом' ('Acceptance in progress')\n        Ожидаемый результат: заявку в статусе 'Acceptance in progress' попала в сервис Acceptance\n        ", "steps": [{"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "cf8b2062-c060-4d7c-9661-f04aa2741f04-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "ab59477b-00e5-4381-a0b6-60f5b2b55d6d-attachment.json", "type": "application/json"}], "start": 1775636290393, "stop": 1775636290393}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "b7652d3e-6631-40ae-b7ac-73ff52ab332f-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "278725d8-188e-48f2-aac4-089771159b33-attachment.json", "type": "application/json"}], "start": 1775636290394, "stop": 1775636290394}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "66c255d2-938c-4233-94f3-5c6302608b3a-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "b6ef3c8e-03f2-40ff-9a28-5e71d1f8dcd8-attachment.json", "type": "application/json"}], "start": 1775636290396, "stop": 1775636290396}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/batch", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "f0d8fe37-4738-46d2-ae80-789a0ff4eb51-attachment.json", "type": "application/json"}], "start": 1775636290551, "stop": 1775636290551}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "289d9651-e88a-4500-b354-26ab29708121-attachment.json", "type": "application/json"}], "start": 1775636290551, "stop": 1775636290551}], "attachments": [{"name": "cURL", "source": "9b768f5d-c1cf-46ac-89f1-2c3894e3f970-attachment.txt", "type": "text/plain"}], "start": 1775636290551, "stop": 1775636290551}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "18ceb5ec-0bef-435f-9674-e1e375143cbc-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "dcfce138-e696-49fc-8aed-cdf8a9ca655c-attachment.json", "type": "application/json"}], "start": 1775636290597, "stop": 1775636290597}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "b9b39d40-6671-49c1-b7c0-15cc5abbd9d9-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "9990a564-3831-45b5-a668-027f3ad69eee-attachment.json", "type": "application/json"}], "start": 1775636290597, "stop": 1775636290597}], "attachments": [{"name": "cURL", "source": "e7baa91b-33b2-48ae-a3db-ea0c6f3e33cc-attachment.txt", "type": "text/plain"}], "start": 1775636290597, "stop": 1775636290597}, {"name": "PUT → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice?invoiceNumber=410002115", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "cffec90f-45ae-44fb-b303-cfbc888cdf0b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ebafdf4b-fed6-4a91-a97f-cba03e4c8b36-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "9f48752b-4b22-43c5-9473-3c5062617557-attachment.json", "type": "application/json"}], "start": 1775636290639, "stop": 1775636290639}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "0d92915c-ef45-4d84-bfe5-3265eed21a1d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "530133d7-276a-4b85-96e0-caabc0f99e43-attachment.json", "type": "application/json"}], "start": 1775636290639, "stop": 1775636290640}], "attachments": [{"name": "cURL", "source": "2adc347e-645c-4435-830d-0bd72d2f3fcf-attachment.txt", "type": "text/plain"}], "start": 1775636290639, "stop": 1775636290640}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410002115", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "154116c9-5fae-4b5d-bd34-00a9ffa64eff-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "f2f1aafa-dcd9-436d-a749-dfce40379429-attachment.json", "type": "application/json"}], "start": 1775636291582, "stop": 1775636291582}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "6f0a89a2-da39-4b7c-8d77-45a3686cce67-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d5b97504-32a7-43b2-9591-d0dbcec843e7-attachment.txt", "type": "text/plain"}], "start": 1775636291582, "stop": 1775636291582}], "attachments": [{"name": "cURL", "source": "12eb16ac-f667-43ce-8c0c-9357b55d3ea8-attachment.txt", "type": "text/plain"}], "start": 1775636291582, "stop": 1775636291582}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "a8bf6a2a-0a34-416a-93af-725e66a13a07-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "aa2a8103-f923-4fbe-8f82-260a197a9db8-attachment.json", "type": "application/json"}], "start": 1775636291797, "stop": 1775636291797}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "bac509f8-15ac-4e40-a333-76a0fc3b4622-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e89d3755-94bf-4c7f-a6fc-706553d3bf84-attachment.json", "type": "application/json"}], "start": 1775636291797, "stop": 1775636291797}], "attachments": [{"name": "cURL", "source": "ca448a60-f7dc-46e7-a428-85ceceb9b03d-attachment.txt", "type": "text/plain"}], "start": 1775636291797, "stop": 1775636291797}, {"name": "Waiter function: wait_invoice_from_lk", "status": "passed", "steps": [{"name": "GET → https://dm-fmcg-be-service-acceptance.k8s-review.dailymail-tech.uz/api/v1/acceptance/invoice/87393763843", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "dfa361f9-ae35-4589-a270-d772a7014722-attachment.json", "type": "application/json"}], "start": 1775636291837, "stop": 1775636291837}, {"name": "Response → 404, trace_id: c136ae0e8e05e30d3824074982ab112f", "status": "passed", "attachments": [{"name": "response.headers", "source": "6c517f0b-85dd-4008-86d5-7a8056b23719-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "dc119070-5f62-4a6f-aa5f-c7a19558c671-attachment.json", "type": "application/json"}], "start": 1775636291837, "stop": 1775636291837}], "attachments": [{"name": "cURL", "source": "bfe853ef-6483-4adb-9301-87adf82ba174-attachment.txt", "type": "text/plain"}], "start": 1775636291837, "stop": 1775636291837}, {"name": "GET → https://dm-fmcg-be-service-acceptance.k8s-review.dailymail-tech.uz/api/v1/acceptance/invoice/87393763843", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "38e2bb3c-f711-4058-b96c-a9af05063a08-attachment.json", "type": "application/json"}], "start": 1775636301872, "stop": 1775636301872}, {"name": "Response → 404, trace_id: 6ff6ba685da53cf273e31fb886d543d1", "status": "passed", "attachments": [{"name": "response.headers", "source": "a584736a-7101-4ebf-b060-fee1775a04b8-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "dfd6baf8-4d63-4482-939d-2c4fabe6adf0-attachment.json", "type": "application/json"}], "start": 1775636301872, "stop": 1775636301872}], "attachments": [{"name": "cURL", "source": "e372f1f5-791c-46d9-a4cb-30e4a5048f72-attachment.txt", "type": "text/plain"}], "start": 1775636301872, "stop": 1775636301872}, {"name": "GET → https://dm-fmcg-be-service-acceptance.k8s-review.dailymail-tech.uz/api/v1/acceptance/invoice/87393763843", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "067b1ee5-9e95-4d6a-a814-949cb4203784-attachment.json", "type": "application/json"}], "start": 1775636311907, "stop": 1775636311907}, {"name": "Response → 200, trace_id: 2729641d5c5c914f164061765fc7443e", "status": "passed", "attachments": [{"name": "response.headers", "source": "c8322571-5cdc-4177-823f-e6503ec01fa3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "04df6b18-98b1-4511-94da-f3cd8bf49665-attachment.json", "type": "application/json"}], "start": 1775636311907, "stop": 1775636311907}], "attachments": [{"name": "cURL", "source": "a6bbd497-42c7-4191-9721-3ee54c349cd5-attachment.txt", "type": "text/plain"}], "start": 1775636311907, "stop": 1775636311907}], "start": 1775636291802, "stop": 1775636311911}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "75ffbc63-cabf-4852-95c8-315d9d634b2a-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "3fada9f9-6739-4115-8f9d-18ca1e33b611-attachment.json", "type": "application/json"}], "start": 1775636311945, "stop": 1775636311945}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "85eb6e63-024c-4ae6-98a8-d7e730a328d2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a1af1d53-1160-4f6c-9981-9f066c0ebf3c-attachment.json", "type": "application/json"}], "start": 1775636311945, "stop": 1775636311945}], "attachments": [{"name": "cURL", "source": "054a68f1-d2e4-44ce-a7cf-40fba7534617-attachment.txt", "type": "text/plain"}], "start": 1775636311945, "stop": 1775636311946}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "122ee6ba-9364-4952-a295-1575fcb1ca5e-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "9f6b4960-4345-4a34-ac42-0fae3979a17b-attachment.json", "type": "application/json"}], "start": 1775636311992, "stop": 1775636311992}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "fb47f9af-6f55-443f-bfa5-7a20fe934d19-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "eb593e00-0e2f-4e86-acb5-b576e9d58bc0-attachment.json", "type": "application/json"}], "start": 1775636311992, "stop": 1775636311992}], "attachments": [{"name": "cURL", "source": "83bba398-97f7-48cd-b866-c9692e8b4c08-attachment.txt", "type": "text/plain"}], "start": 1775636311992, "stop": 1775636311992}], "attachments": [{"name": "log", "source": "b07ad5b9-ae18-4dea-b338-44af6b1ef184-attachment.txt", "type": "text/plain"}], "start": 1775636290382, "stop": 1775636311997, "uuid": "2c3fda81-5bc3-4773-bd2d-5f161384d421", "historyId": "302f792917bf91782f0daac535ab1337", "testCaseId": "302f792917bf91782f0daac535ab1337", "fullName": "tests.fmcg.test_lk.test_integration.TestIntegrationWithAcceptanceService#test_invoice_batch_upload_set_invoice_status_acceptance_in_progress", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_integration"}, {"name": "subSuite", "value": "TestIntegrationWithAcceptanceService"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-x106l0j2"}, {"name": "thread", "value": "30-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_integration"}], "titlePath": ["tests", "fmcg", "test_lk", "test_integration.py", "TestIntegrationWithAcceptanceService"]}