{"name": "test_add_bundles_to_one_sku", "status": "failed", "statusDetails": {"message": "AssertionError: Data from file and in DB aren't the same: [{'bundle_barcode': '41879452229', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пропадать анализ прежний зима.', 'item_amount': 2, 'purchase_price': 7330, 'length': 8986, 'height': 890, 'width': 2169, 'weight': 4837, 'erp_id': '2648756705', 'currency': 'USD'}, {'bundle_barcode': '44079289568', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пасть а.', 'item_amount': 7, 'purchase_price': 2993, 'length': 6600, 'height': 7508, 'width': 7247, 'weight': 4617, 'erp_id': '789126718640908', 'currency': 'USD'}, {'bundle_barcode': '79079390886041', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Изредка радость зачем деловой.', 'item_amount': 10, 'purchase_price': 3612, 'length': 3635, 'height': 5398, 'width': 2669, 'weight': 9309, 'erp_id': '2872460198373', 'currency': 'USD'}]\n  \n  [{'id': 12747, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пропадать анализ прежний зима.', 'bundle_barcode': '41879452229', 'item_amount': 2, 'erp_id': '2648756705', 'length': 8986, 'height': 890, 'width': 2169, 'weight': 4837, 'purchase_price': 7330.0, 'currency': 'USD'}, {'id': 12748, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пасть а.', 'bundle_barcode': '44079289568', 'item_amount': 7, 'erp_id': '789126718640908', 'length': 6600, 'height': 7508, 'width': 7247, 'weight': 4617, 'purchase_price': 2993.0, 'currency': 'USD'}, {'id': 12749, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Изредка радость зачем деловой.', 'bundle_barcode': '79079390886041', 'item_amount': 10, 'erp_id': '2872460198373', 'length': 3635, 'height': 5398, 'width': 2669, 'weight': 9309, 'purchase_price': 3612.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 0x7eccfade5dd0>\nget_fmcg_sku = LKSKUDTO(sku=<src.framework.fmcg.builders.lk.sku.FMCGSKUBuilder object at 0x7eccf979c210>)\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': '41879452229', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пропадать анализ прежний зима.', 'item_amount': 2, 'purchase_price': 7330, 'length': 8986, 'height': 890, 'width': 2169, 'weight': 4837, 'erp_id': '2648756705', 'currency': 'USD'}, {'bundle_barcode': '44079289568', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пасть а.', 'item_amount': 7, 'purchase_price': 2993, 'length': 6600, 'height': 7508, 'width': 7247, 'weight': 4617, 'erp_id': '789126718640908', 'currency': 'USD'}, {'bundle_barcode': '79079390886041', 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Изредка радость зачем деловой.', 'item_amount': 10, 'purchase_price': 3612, 'length': 3635, 'height': 5398, 'width': 2669, 'weight': 9309, 'erp_id': '2872460198373', 'currency': 'USD'}]\nE         \nE         [{'id': 12747, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пропадать анализ прежний зима.', 'bundle_barcode': '41879452229', 'item_amount': 2, 'erp_id': '2648756705', 'length': 8986, 'height': 890, 'width': 2169, 'weight': 4837, 'purchase_price': 7330.0, 'currency': 'USD'}, {'id': 12748, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Пасть а.', 'bundle_barcode': '44079289568', 'item_amount': 7, 'erp_id': '789126718640908', 'length': 6600, 'height': 7508, 'width': 7247, 'weight': 4617, 'purchase_price': 2993.0, 'currency': 'USD'}, {'id': 12749, 'bundle_name': 'AUTOTEST_FROM_BATCH_BUNDLE_Изредка радость зачем деловой.', 'bundle_barcode': '79079390886041', 'item_amount': 10, 'erp_id': '2872460198373', 'length': 3635, 'height': 5398, 'width': 2669, 'weight': 9309, 'purchase_price': 3612.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": "086266fd-c1c3-4a1c-8c6e-78f59dc5051e-attachment.json", "type": "application/json"}], "start": 1775518764683, "stop": 1775518764683}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "9131cfc7-55aa-4f46-a827-88c29c97dd24-attachment.json", "type": "application/json"}], "start": 1775518764683, "stop": 1775518764683}], "attachments": [{"name": "cURL", "source": "6e34ea32-37f4-43ae-895a-9876af72a15e-attachment.txt", "type": "text/plain"}], "start": 1775518764683, "stop": 1775518764683}], "start": 1775518764637, "stop": 1775518764686}, {"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": "04846b20-6a62-40ee-aa4d-4ca889e37baf-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "ad7c9d50-406c-44ab-8049-6c2266004fad-attachment.json", "type": "application/json"}], "start": 1775518764710, "stop": 1775518764710}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "a56d284f-df12-43ac-b7f5-7763beadc020-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "eb26bde4-79bf-4bcc-89d9-e540ffdd43bf-attachment.json", "type": "application/json"}], "start": 1775518764710, "stop": 1775518764710}], "attachments": [{"name": "cURL", "source": "09826b9c-eada-4a94-9603-63a19bf22c22-attachment.txt", "type": "text/plain"}], "start": 1775518764710, "stop": 1775518764711}], "attachments": [{"name": "log", "source": "aa1eabf5-ff4e-4ab5-bdd3-b5f191307259-attachment.txt", "type": "text/plain"}], "start": 1775518764600, "stop": 1775518764715, "uuid": "83a878f6-7281-4c55-b234-6dd4d251a8ff", "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-u18kj11c"}, {"name": "thread", "value": "45-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"]}