{"name": "test_add_bundles_to_one_sku", "status": "failed", "statusDetails": {"message": "AssertionError: Data from file and in DB aren't the same: [{'bundle_barcode': '6397792317', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Научить недостаток ученый терапия.', 'item_amount': 7, 'purchase_price': 5799, 'length': 7781, 'height': 6370, 'width': 5575, 'weight': 5156, 'erp_id': '91199477841003', 'currency': 'USD'}, {'bundle_barcode': '619924987050', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Полностью бетонный плод.', 'item_amount': 9, 'purchase_price': 7868, 'length': 2583, 'height': 8387, 'width': 4920, 'weight': 9637, 'erp_id': '9716411214621', 'currency': 'USD'}, {'bundle_barcode': '635287264481', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Отдел освобождение.', 'item_amount': 4, 'purchase_price': 4916, 'length': 5304, 'height': 9865, 'width': 6845, 'weight': 4093, 'erp_id': '8938655588151', 'currency': 'USD'}]\n  \n  [{'id': 12781, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Научить недостаток ученый терапия.', 'bundle_barcode': '6397792317', 'item_amount': 7, 'erp_id': '91199477841003', 'length': 7781, 'height': 6370, 'width': 5575, 'weight': 5156, 'purchase_price': 5799.0, 'currency': 'USD'}, {'id': 12782, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Полностью бетонный плод.', 'bundle_barcode': '619924987050', 'item_amount': 9, 'erp_id': '9716411214621', 'length': 2583, 'height': 8387, 'width': 4920, 'weight': 9637, 'purchase_price': 7868.0, 'currency': 'USD'}, {'id': 12783, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Отдел освобождение.', 'bundle_barcode': '635287264481', 'item_amount': 4, 'erp_id': '8938655588151', 'length': 5304, 'height': 9865, 'width': 6845, 'weight': 4093, 'purchase_price': 4916.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 0x75fba7afded0>\nget_fmcg_sku = LKSKUDTO(sku=<src.framework.fmcg.builders.lk.sku.FMCGSKUBuilder object at 0x75fbbb19fb10>)\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': '6397792317', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Научить недостаток ученый терапия.', 'item_amount': 7, 'purchase_price': 5799, 'length': 7781, 'height': 6370, 'width': 5575, 'weight': 5156, 'erp_id': '91199477841003', 'currency': 'USD'}, {'bundle_barcode': '619924987050', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Полностью бетонный плод.', 'item_amount': 9, 'purchase_price': 7868, 'length': 2583, 'height': 8387, 'width': 4920, 'weight': 9637, 'erp_id': '9716411214621', 'currency': 'USD'}, {'bundle_barcode': '635287264481', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Отдел освобождение.', 'item_amount': 4, 'purchase_price': 4916, 'length': 5304, 'height': 9865, 'width': 6845, 'weight': 4093, 'erp_id': '8938655588151', 'currency': 'USD'}]\nE         \nE         [{'id': 12781, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Научить недостаток ученый терапия.', 'bundle_barcode': '6397792317', 'item_amount': 7, 'erp_id': '91199477841003', 'length': 7781, 'height': 6370, 'width': 5575, 'weight': 5156, 'purchase_price': 5799.0, 'currency': 'USD'}, {'id': 12782, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Полностью бетонный плод.', 'bundle_barcode': '619924987050', 'item_amount': 9, 'erp_id': '9716411214621', 'length': 2583, 'height': 8387, 'width': 4920, 'weight': 9637, 'purchase_price': 7868.0, 'currency': 'USD'}, {'id': 12783, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Отдел освобождение.', 'bundle_barcode': '635287264481', 'item_amount': 4, 'erp_id': '8938655588151', 'length': 5304, 'height': 9865, 'width': 6845, 'weight': 4093, 'purchase_price': 4916.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": "db4d542a-28ef-4a77-956e-f512a6b69052-attachment.json", "type": "application/json"}], "start": 1775605252460, "stop": 1775605252460}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "ecdf414a-3c8b-449b-b281-f902e8e0936d-attachment.json", "type": "application/json"}], "start": 1775605252460, "stop": 1775605252460}], "attachments": [{"name": "cURL", "source": "9e265468-90f1-4166-b452-3918e2422094-attachment.txt", "type": "text/plain"}], "start": 1775605252460, "stop": 1775605252460}], "start": 1775605252413, "stop": 1775605252462}, {"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": "c05c5c87-b307-4908-9efc-52ddda585e0d-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "5da5e488-4247-45fc-b1c7-9745365b804b-attachment.json", "type": "application/json"}], "start": 1775605252483, "stop": 1775605252483}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "2a0235ed-fbf0-43d3-aaf0-2b0461ea5041-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "990519cc-92dc-4bce-836f-c5ac96260665-attachment.json", "type": "application/json"}], "start": 1775605252483, "stop": 1775605252483}], "attachments": [{"name": "cURL", "source": "76555ef4-dae4-4660-b61f-61a2e22d5426-attachment.txt", "type": "text/plain"}], "start": 1775605252483, "stop": 1775605252483}], "attachments": [{"name": "log", "source": "06063075-d57b-4c92-8cfa-3ee25e3606a6-attachment.txt", "type": "text/plain"}], "start": 1775605252371, "stop": 1775605252487, "uuid": "fa6aba5c-5c96-4b8d-bb2e-576354c6c4bc", "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-joxwe6sr"}, {"name": "thread", "value": "42-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"]}