{"name": "test_add_bundles_to_one_sku", "status": "failed", "statusDetails": {"message": "AssertionError: Data from file and in DB aren't the same: [{'bundle_barcode': '7418934895', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Устройство стакан юный монета.', 'item_amount': 2, 'purchase_price': 7220, 'length': 7118, 'height': 230, 'width': 1209, 'weight': 5187, 'erp_id': '4126825097013', 'currency': 'USD'}, {'bundle_barcode': '103079511601', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Выдержать заработать вообще.', 'item_amount': 2, 'purchase_price': 6837, 'length': 9291, 'height': 598, 'width': 2336, 'weight': 4133, 'erp_id': '97854251623', 'currency': 'USD'}, {'bundle_barcode': '194320157420282', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Коричневый радость.', 'item_amount': 3, 'purchase_price': 7835, 'length': 6231, 'height': 3045, 'width': 1628, 'weight': 6339, 'erp_id': '41579216761186', 'currency': 'USD'}]\n  \n  [{'id': 12829, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Устройство стакан юный монета.', 'bundle_barcode': '7418934895', 'item_amount': 2, 'erp_id': '4126825097013', 'length': 7118, 'height': 230, 'width': 1209, 'weight': 5187, 'purchase_price': 7220.0, 'currency': 'USD'}, {'id': 12830, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Выдержать заработать вообще.', 'bundle_barcode': '103079511601', 'item_amount': 2, 'erp_id': '97854251623', 'length': 9291, 'height': 598, 'width': 2336, 'weight': 4133, 'purchase_price': 6837.0, 'currency': 'USD'}, {'id': 12831, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Коричневый радость.', 'bundle_barcode': '194320157420282', 'item_amount': 3, 'erp_id': '41579216761186', 'length': 6231, 'height': 3045, 'width': 1628, 'weight': 6339, 'purchase_price': 7835.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 0x7b540c319ed0>\nget_fmcg_sku = LKSKUDTO(sku=<src.framework.fmcg.builders.lk.sku.FMCGSKUBuilder object at 0x7b540b7eb110>)\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': '7418934895', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Устройство стакан юный монета.', 'item_amount': 2, 'purchase_price': 7220, 'length': 7118, 'height': 230, 'width': 1209, 'weight': 5187, 'erp_id': '4126825097013', 'currency': 'USD'}, {'bundle_barcode': '103079511601', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Выдержать заработать вообще.', 'item_amount': 2, 'purchase_price': 6837, 'length': 9291, 'height': 598, 'width': 2336, 'weight': 4133, 'erp_id': '97854251623', 'currency': 'USD'}, {'bundle_barcode': '194320157420282', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Коричневый радость.', 'item_amount': 3, 'purchase_price': 7835, 'length': 6231, 'height': 3045, 'width': 1628, 'weight': 6339, 'erp_id': '41579216761186', 'currency': 'USD'}]\nE         \nE         [{'id': 12829, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Устройство стакан юный монета.', 'bundle_barcode': '7418934895', 'item_amount': 2, 'erp_id': '4126825097013', 'length': 7118, 'height': 230, 'width': 1209, 'weight': 5187, 'purchase_price': 7220.0, 'currency': 'USD'}, {'id': 12830, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Выдержать заработать вообще.', 'bundle_barcode': '103079511601', 'item_amount': 2, 'erp_id': '97854251623', 'length': 9291, 'height': 598, 'width': 2336, 'weight': 4133, 'purchase_price': 6837.0, 'currency': 'USD'}, {'id': 12831, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Коричневый радость.', 'bundle_barcode': '194320157420282', 'item_amount': 3, 'erp_id': '41579216761186', 'length': 6231, 'height': 3045, 'width': 1628, 'weight': 6339, 'purchase_price': 7835.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": "c2b3c4fc-71d0-4ad2-9b96-a6d656200ea3-attachment.json", "type": "application/json"}], "start": 1775777974113, "stop": 1775777974113}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "f4fc900b-4645-41c0-b91f-38fb14763e36-attachment.json", "type": "application/json"}], "start": 1775777974113, "stop": 1775777974113}], "attachments": [{"name": "cURL", "source": "22c5d62a-60d5-4371-9cc1-d387a60d1a1a-attachment.txt", "type": "text/plain"}], "start": 1775777974113, "stop": 1775777974113}], "start": 1775777974068, "stop": 1775777974117}, {"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": "db67c510-8646-4913-9e70-82fcb9c6042f-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "b729926c-8201-4783-907c-e75818cc191e-attachment.json", "type": "application/json"}], "start": 1775777974138, "stop": 1775777974139}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "f34ffdd6-39a1-4feb-b7fc-fb7234daa4dd-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "702ba18e-f1f9-4d01-ade1-75259eeefd76-attachment.json", "type": "application/json"}], "start": 1775777974139, "stop": 1775777974139}], "attachments": [{"name": "cURL", "source": "4ee3ae10-5692-4d24-afe3-90f1ae00ee77-attachment.txt", "type": "text/plain"}], "start": 1775777974138, "stop": 1775777974139}], "attachments": [{"name": "log", "source": "2ce9878e-4094-447b-9f18-d5d296da2cb7-attachment.txt", "type": "text/plain"}], "start": 1775777974027, "stop": 1775777974143, "uuid": "99ba1a97-b248-4236-a3df-b982ab63435b", "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-xlaoy098"}, {"name": "thread", "value": "33-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"]}