{"name": "test_add_bundles_to_one_sku", "status": "failed", "statusDetails": {"message": "AssertionError: Data from file and in DB aren't the same: [{'bundle_barcode': '66300357553', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Ход вывести прежний.', 'item_amount': 4, 'purchase_price': 4446, 'length': 6797, 'height': 8022, 'width': 3381, 'weight': 6690, 'erp_id': '60684655913172', 'currency': 'USD'}, {'bundle_barcode': '81604118912', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Настать издали присесть.', 'item_amount': 5, 'purchase_price': 7551, 'length': 1124, 'height': 4645, 'width': 3157, 'weight': 2151, 'erp_id': '61456419781', 'currency': 'USD'}, {'bundle_barcode': '756822568589058', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Конструкция протягивать мелочь.', 'item_amount': 6, 'purchase_price': 1190, 'length': 1224, 'height': 1764, 'width': 4794, 'weight': 9713, 'erp_id': '772011500552850', 'currency': 'USD'}]\n  \n  [{'id': 12811, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Ход вывести прежний.', 'bundle_barcode': '66300357553', 'item_amount': 4, 'erp_id': '60684655913172', 'length': 6797, 'height': 8022, 'width': 3381, 'weight': 6690, 'purchase_price': 4446.0, 'currency': 'USD'}, {'id': 12812, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Настать издали присесть.', 'bundle_barcode': '81604118912', 'item_amount': 5, 'erp_id': '61456419781', 'length': 1124, 'height': 4645, 'width': 3157, 'weight': 2151, 'purchase_price': 7551.0, 'currency': 'USD'}, {'id': 12813, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Конструкция протягивать мелочь.', 'bundle_barcode': '756822568589058', 'item_amount': 6, 'erp_id': '772011500552850', 'length': 1224, 'height': 1764, 'width': 4794, 'weight': 9713, 'purchase_price': 1190.0, 'currency': 'USD'}]\nassert {'dictionary_...ot[2]['id']\"]} == {}\n  \n  Left contains 1 more item:\n  {'dictionary_item_added': [\"root[0]['id']\", \"root[1]['id']\", \"root[2]['id']\"]}\n  \n  Full diff:\n  - {}\n  + {\n  +     'dictionary_item_added': [\"root[0]['id']\", \"root[1]['id']\", \"root[2]['id']\"],\n  + }", "trace": "self = <tests.fmcg.test_lk.test_sku.TestFMCGSKUBundleBatch object at 0x7d01ae1a2250>\nget_fmcg_sku = LKSKUDTO(sku=<src.framework.fmcg.builders.lk.sku.FMCGSKUBuilder object at 0x7d01ae1a04d0>)\n\n    def test_add_bundles_to_one_sku(self, get_fmcg_sku):\n        \"\"\"\n        Создадим комплекты для одного товара\n        Ожидаемый результат: данные из файла и данные загруженные в БД одинаковы\n        \"\"\"\n        sku_barcode = get_fmcg_sku.sku.current_sku.barcode_infos[0].barcode\n        sku_bundle_data_for_batch = sorted(\n            [\n                FMCGSKUBundleBatch(is_price_float=False, sku_barcode=sku_barcode).model_dump()\n                for _ in range(SKU_BUNDLE_NUMBERS_FOR_BATCH_FILE)\n            ],\n            key=lambda i: int(i[\"bundle_barcode\"]),\n        )\n        initial_builder = FMCGSKUBuilder(headers=get_fmcg_sku.sku.headers)\n        initial_builder.sku_bundle_upload_by_batch(data=sku_bundle_data_for_batch)\n        sku_bundle_data = initial_builder.get_sku_bundle_by_sku_id(\n            sku_id=get_fmcg_sku.sku.get_current_sku_id()\n        ).sku_bundle\n        assert len(sku_bundle_data) == SKU_BUNDLE_NUMBERS_FOR_BATCH_FILE, \"Bundle quantity is not correct\"\n    \n        # Сравниваем данные\n        # 'sku_bundle_data_for_batch' - загружаемые данные для комплектов\n        # 'sorted_sku_bundle_data' - данные комплекта, полученные после загрузки\n        #\n        sorted_sku_bundle_data = sorted(\n            [\n                {k: v for k, v in d.to_dict().items() if k not in (\"number_bundle_on_level_pallet\", \"sell_price\")}\n                for d in sku_bundle_data\n            ],\n            key=lambda i: int(i[\"bundle_barcode\"]),\n        )\n        sku_bundle_data_for_batch = [\n            {k: v for k, v in d.items() if k != \"sku_barcode\"} for d in sku_bundle_data_for_batch\n        ]\n    \n>       assert (\n            DeepDiff(sku_bundle_data_for_batch, sorted_sku_bundle_data, ignore_type_in_groups=[(int, float)]) == {}\n        ), f\"Data from file and in DB aren't the same: {sku_bundle_data_for_batch}\\n\\n{sorted_sku_bundle_data}\"\nE       AssertionError: Data from file and in DB aren't the same: [{'bundle_barcode': '66300357553', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Ход вывести прежний.', 'item_amount': 4, 'purchase_price': 4446, 'length': 6797, 'height': 8022, 'width': 3381, 'weight': 6690, 'erp_id': '60684655913172', 'currency': 'USD'}, {'bundle_barcode': '81604118912', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Настать издали присесть.', 'item_amount': 5, 'purchase_price': 7551, 'length': 1124, 'height': 4645, 'width': 3157, 'weight': 2151, 'erp_id': '61456419781', 'currency': 'USD'}, {'bundle_barcode': '756822568589058', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Конструкция протягивать мелочь.', 'item_amount': 6, 'purchase_price': 1190, 'length': 1224, 'height': 1764, 'width': 4794, 'weight': 9713, 'erp_id': '772011500552850', 'currency': 'USD'}]\nE         \nE         [{'id': 12811, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Ход вывести прежний.', 'bundle_barcode': '66300357553', 'item_amount': 4, 'erp_id': '60684655913172', 'length': 6797, 'height': 8022, 'width': 3381, 'weight': 6690, 'purchase_price': 4446.0, 'currency': 'USD'}, {'id': 12812, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Настать издали присесть.', 'bundle_barcode': '81604118912', 'item_amount': 5, 'erp_id': '61456419781', 'length': 1124, 'height': 4645, 'width': 3157, 'weight': 2151, 'purchase_price': 7551.0, 'currency': 'USD'}, {'id': 12813, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Конструкция протягивать мелочь.', 'bundle_barcode': '756822568589058', 'item_amount': 6, 'erp_id': '772011500552850', 'length': 1224, 'height': 1764, 'width': 4794, 'weight': 9713, 'purchase_price': 1190.0, 'currency': 'USD'}]\nE       assert {'dictionary_...ot[2]['id']\"]} == {}\nE         \nE         Left contains 1 more item:\nE         {'dictionary_item_added': [\"root[0]['id']\", \"root[1]['id']\", \"root[2]['id']\"]}\nE         \nE         Full diff:\nE         - {}\nE         + {\nE         +     'dictionary_item_added': [\"root[0]['id']\", \"root[1]['id']\", \"root[2]['id']\"],\nE         + }\n\ntests/fmcg/test_lk/test_sku.py:219: AssertionError"}, "description": "\n        Создадим комплекты для одного товара\n        Ожидаемый результат: данные из файла и данные загруженные в БД одинаковы\n        ", "steps": [{"name": "Waiter function: wait_sku_bundle_batch_upload", "status": "passed", "steps": [{"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku/bundle/batch", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "709c0b09-e41f-42af-975e-30fce8b85bba-attachment.json", "type": "application/json"}], "start": 1775691652152, "stop": 1775691652152}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "d0a6676f-c32a-4d42-87d7-0c47d01dfbb5-attachment.json", "type": "application/json"}], "start": 1775691652152, "stop": 1775691652152}], "attachments": [{"name": "cURL", "source": "9d5159df-3754-4b1d-be0f-34409efc9073-attachment.txt", "type": "text/plain"}], "start": 1775691652152, "stop": 1775691652152}], "start": 1775691652110, "stop": 1775691652155}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku/bundle", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "4d19c9a9-1e64-47a2-b407-a310661b31db-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "2c0bc8bb-d7f1-4e34-8b13-9acc386385d8-attachment.json", "type": "application/json"}], "start": 1775691652175, "stop": 1775691652175}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "68040c08-bebf-4ede-90bd-52d60c6882b3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "5fc26aa7-6bcb-4c06-880b-ebd2dbe7d60b-attachment.json", "type": "application/json"}], "start": 1775691652175, "stop": 1775691652175}], "attachments": [{"name": "cURL", "source": "fdf20f26-ee38-4636-9e04-1ff1b381e7d0-attachment.txt", "type": "text/plain"}], "start": 1775691652175, "stop": 1775691652175}], "attachments": [{"name": "log", "source": "d68236c5-1523-4445-8ffe-eeb84f54be75-attachment.txt", "type": "text/plain"}], "start": 1775691652066, "stop": 1775691652181, "uuid": "d0e56c5c-2b43-419f-a290-4c02764231db", "historyId": "f069bfc89c1accda8347e0e736b51ab0", "testCaseId": "f069bfc89c1accda8347e0e736b51ab0", "fullName": "tests.fmcg.test_lk.test_sku.TestFMCGSKUBundleBatch#test_add_bundles_to_one_sku", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "tag", "value": "batch_upload"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_sku"}, {"name": "subSuite", "value": "TestFMCGSKUBundleBatch"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-3-7znb8869"}, {"name": "thread", "value": "30-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_sku"}], "titlePath": ["tests", "fmcg", "test_lk", "test_sku.py", "TestFMCGSKUBundleBatch"]}