{"name": "test_sku_batch_upload", "status": "failed", "statusDetails": {"message": "AssertionError: Data from file and in DB aren't the same\n  From file: [{'barcode': '8940702875', 'name': 'AUTOTEST_FROM_BATCH_Ягода проход лететь.', 'description': 'AUTOTEST_FROM_BATCH_Спичка роскошный уронить вскакивать чем инфекция.', 'price': 1352, 'weight': 9461, 'length': 3666, 'width': 1787, 'height': 6032, 'has_mark': 'true', 'erp_id': '1863292491914', 'unit': 'тест-шт', 'packing_type': 'Тест-пакет', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'кольцо', 'brand': '073827'}, {'barcode': '50664960631', 'name': 'AUTOTEST_FROM_BATCH_Армейский боец обида дыхание.', 'description': 'AUTOTEST_FROM_BATCH_Угроза сомнительный грустный проход настать дружно горький школьный необычный пища команда тюрьма.', 'price': 7890, 'weight': 3537, 'length': 928, 'width': 2912, 'height': 3852, 'has_mark': 'true', 'erp_id': '97786084735322', 'unit': 'тест-шт', 'packing_type': 'Тест-коробка', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'четыре', 'brand': '094419   '}, {'barcode': '890352461728', 'name': 'AUTOTEST_FROM_BATCH_Бабочка прощение аллея зато.', 'description': 'AUTOTEST_FROM_BATCH_Разводить порог изображать полюбить применяться запустить научить жестокий.', 'price': 5683, 'weight': 1685, 'length': 8454, 'width': 1046, 'height': 1524, 'has_mark': 'true', 'erp_id': '67975400067', 'unit': 'тест-шт', 'packing_type': 'Тест-коробка', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'низкий', 'brand': '082263   '}]\n  From DB: [{'barcode': '8940702875', 'name': 'AUTOTEST_FROM_BATCH_Ягода проход лететь.', 'description': 'AUTOTEST_FROM_BATCH_Спичка роскошный уронить вскакивать чем инфекция.', 'price': 1352.0, 'weight': 9461.0, 'length': 3666.0, 'width': 1787.0, 'height': 6032.0, 'has_mark': 'true', 'erp_id': '1863292491914', 'unit': 'тест-шт', 'packing_type': 'Тест-пакет', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'кольцо', 'brand': '073827'}]\nassert {'iterable_it...'082263   '}}} == {}\n  \n  Left contains 1 more item:\n  {'iterable_item_removed': {'root[1]': {'barcode': '50664960631',\n                                         'brand': '094419   ',\n                                         'category': 'четыре',\n                                         'currency': 'USD',\n                                         'description': 'AUTOTEST_FROM_BATCH_Угроза '\n                                                        'сомнительный грустный '\n                                                        'проход настать дружно '\n                                                        'горький школьный '\n                                                        'необычный пища команда '\n                                                        'тюрьма.',\n                                         'erp_id': '97786084735322',\n                                         'has_expiration_date': 'true',\n                                         'has_mark': 'true',\n                                         'height': 3852,\n                                         'length': 928,\n                                         'name': 'AUTOTEST_FROM_BATCH_Армейский '\n                                                 'боец обида дыхание.',\n                                         'packing_type': 'Тест-коробка',\n                                         'price': 7890,\n                                         'unit': 'тест-шт',\n                                         'weight': 3537,\n                                         'width': 2912},\n                             'root[2]': {'barcode': '890352461728',\n                                         'brand': '082263   ',\n                                         'category': 'низкий',\n                                         'currency': 'USD',\n                                         'description': 'AUTOTEST_FROM_BATCH_Разводить '\n                                                        'порог изображать '\n                                                        'полюбить применяться '\n                                                        'запустить научить '\n                                                        'жестокий.',\n                                         'erp_id': '67975400067',\n                                         'has_expiration_date': 'true',\n                                         'has_mark': 'true',\n                                         'height': 1524,\n                                         'length': 8454,\n                                         'name': 'AUTOTEST_FROM_BATCH_Бабочка '\n                                                 'прощение аллея зато.',\n                                         'packing_type': 'Тест-коробка',\n                                         'price': 5683,\n                                         'unit': 'тест-шт',\n                                         'weight': 1685,\n                                         'width': 1046}}}\n  \n  Full diff:\n  - {}\n  + {\n  +     'iterable_item_removed': {\n  +         'root[1]': {\n  +             'barcode': '50664960631',\n  +             'brand': '094419   ',\n  +             'category': 'четыре',\n  +             'currency': 'USD',\n  +             'description': 'AUTOTEST_FROM_BATCH_Угроза сомнительный грустный проход настать '\n  +             'дружно горький школьный необычный пища команда тюрьма.',\n  +             'erp_id': '97786084735322',\n  +             'has_expiration_date': 'true',\n  +             'has_mark': 'true',\n  +             'height': 3852,\n  +             'length': 928,\n  +             'name': 'AUTOTEST_FROM_BATCH_Армейский боец обида дыхание.',\n  +             'packing_type': 'Тест-коробка',\n  +             'price': 7890,\n  +             'unit': 'тест-шт',\n  +             'weight': 3537,\n  +             'width': 2912,\n  +         },\n  +         'root[2]': {\n  +             'barcode': '890352461728',\n  +             'brand': '082263   ',\n  +             'category': 'низкий',\n  +             'currency': 'USD',\n  +             'description': 'AUTOTEST_FROM_BATCH_Разводить порог изображать полюбить '\n  +             'применяться запустить научить жестокий.',\n  +             'erp_id': '67975400067',\n  +             'has_expiration_date': 'true',\n  +             'has_mark': 'true',\n  +             'height': 1524,\n  +             'length': 8454,\n  +             'name': 'AUTOTEST_FROM_BATCH_Бабочка прощение аллея зато.',\n  +             'packing_type': 'Тест-коробка',\n  +             'price': 5683,\n  +             'unit': 'тест-шт',\n  +             'weight': 1685,\n  +             'width': 1046,\n  +         },\n  +     },\n  + }", "trace": "self = <tests.fmcg.test_lk.test_sku.TestFMCGSKUBatch object at 0x7eccfadd5410>\nget_fmcg_auth_header = {'Authorization': 'Bearer 28bc750b-6b1e-40b5-a7b0-1d8966c2e3a3', 'x-aer-mesh': 'dm-hub-service-package:master;dm-hub-s...hub-internal:master;dm-hub-workflow-integration:master;dm-hub-workflow-package:master;dm-hub-workflow-tracking:master'}\n\n    def test_sku_batch_upload(self, get_fmcg_auth_header):\n        \"\"\"\n        Создаем товары загрузкой через файл\n        Ожидаемый результат: данные из файла и данные загруженные в БД одинаковы\n        \"\"\"\n        # Получаем данные для заполнения табличного файла\n        _master_data_builder = MasterDataBuilder().set_user().set_user_auth()\n        UNITS_TITLE = [unit.title for unit in _master_data_builder.get_all_units().units]\n        PACKING_TYPE_TITLE = [type.title for type in _master_data_builder.get_all_packing_type().packing_types]\n        CATEGORY = [category.title for category in _master_data_builder.get_all_categories().categories]\n        BRAND = [brand.title for brand in _master_data_builder.get_all_brands().brands]\n    \n        list_sku_for_batch_file = [\n            FMCGSKUBatch(\n                is_price_float=False,\n                unit=choice(UNITS_TITLE),\n                packing_type=choice(PACKING_TYPE_TITLE),\n                category=choice(CATEGORY),\n                brand=choice(BRAND),\n            ).model_dump()\n            for _ in range(SKU_NUMBERS_FOR_BATCH_FILE)\n        ]\n        sku_barcodes = [i.get(\"barcode\") for i in list_sku_for_batch_file]\n        FMCGSKUBuilder(headers=get_fmcg_auth_header).sku_upload_by_batch(data=list_sku_for_batch_file)\n        sku_from_db = FMCGLKSupplyQueries().get_sku_data_for_sku_batch(sku_barcodes)\n    \n        sorted_list_sku_for_batch_file = sorted(\n            [\n                {k: v for k, v in d.items() if k not in (\"external_sku_id\", \"quantity\", \"photo_url\")}\n                for d in list_sku_for_batch_file\n            ],\n            key=lambda i: int(i[\"barcode\"]),\n        )\n>       assert DeepDiff(sorted_list_sku_for_batch_file, sku_from_db, ignore_type_in_groups=[(int, float)]) == {}, (\n            f\"Data from file and in DB aren't the same\\n\"\n            f\"From file: {sorted_list_sku_for_batch_file}\\nFrom DB: {sku_from_db}\"\n        )\nE       AssertionError: Data from file and in DB aren't the same\nE         From file: [{'barcode': '8940702875', 'name': 'AUTOTEST_FROM_BATCH_Ягода проход лететь.', 'description': 'AUTOTEST_FROM_BATCH_Спичка роскошный уронить вскакивать чем инфекция.', 'price': 1352, 'weight': 9461, 'length': 3666, 'width': 1787, 'height': 6032, 'has_mark': 'true', 'erp_id': '1863292491914', 'unit': 'тест-шт', 'packing_type': 'Тест-пакет', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'кольцо', 'brand': '073827'}, {'barcode': '50664960631', 'name': 'AUTOTEST_FROM_BATCH_Армейский боец обида дыхание.', 'description': 'AUTOTEST_FROM_BATCH_Угроза сомнительный грустный проход настать дружно горький школьный необычный пища команда тюрьма.', 'price': 7890, 'weight': 3537, 'length': 928, 'width': 2912, 'height': 3852, 'has_mark': 'true', 'erp_id': '97786084735322', 'unit': 'тест-шт', 'packing_type': 'Тест-коробка', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'четыре', 'brand': '094419   '}, {'barcode': '890352461728', 'name': 'AUTOTEST_FROM_BATCH_Бабочка прощение аллея зато.', 'description': 'AUTOTEST_FROM_BATCH_Разводить порог изображать полюбить применяться запустить научить жестокий.', 'price': 5683, 'weight': 1685, 'length': 8454, 'width': 1046, 'height': 1524, 'has_mark': 'true', 'erp_id': '67975400067', 'unit': 'тест-шт', 'packing_type': 'Тест-коробка', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'низкий', 'brand': '082263   '}]\nE         From DB: [{'barcode': '8940702875', 'name': 'AUTOTEST_FROM_BATCH_Ягода проход лететь.', 'description': 'AUTOTEST_FROM_BATCH_Спичка роскошный уронить вскакивать чем инфекция.', 'price': 1352.0, 'weight': 9461.0, 'length': 3666.0, 'width': 1787.0, 'height': 6032.0, 'has_mark': 'true', 'erp_id': '1863292491914', 'unit': 'тест-шт', 'packing_type': 'Тест-пакет', 'has_expiration_date': 'true', 'currency': 'USD', 'category': 'кольцо', 'brand': '073827'}]\nE       assert {'iterable_it...'082263   '}}} == {}\nE         \nE         Left contains 1 more item:\nE         {'iterable_item_removed': {'root[1]': {'barcode': '50664960631',\nE                                                'brand': '094419   ',\nE                                                'category': 'четыре',\nE                                                'currency': 'USD',\nE                                                'description': 'AUTOTEST_FROM_BATCH_Угроза '\nE                                                               'сомнительный грустный '\nE                                                               'проход настать дружно '\nE                                                               'горький школьный '\nE                                                               'необычный пища команда '\nE                                                               'тюрьма.',\nE                                                'erp_id': '97786084735322',\nE                                                'has_expiration_date': 'true',\nE                                                'has_mark': 'true',\nE                                                'height': 3852,\nE                                                'length': 928,\nE                                                'name': 'AUTOTEST_FROM_BATCH_Армейский '\nE                                                        'боец обида дыхание.',\nE                                                'packing_type': 'Тест-коробка',\nE                                                'price': 7890,\nE                                                'unit': 'тест-шт',\nE                                                'weight': 3537,\nE                                                'width': 2912},\nE                                    'root[2]': {'barcode': '890352461728',\nE                                                'brand': '082263   ',\nE                                                'category': 'низкий',\nE                                                'currency': 'USD',\nE                                                'description': 'AUTOTEST_FROM_BATCH_Разводить '\nE                                                               'порог изображать '\nE                                                               'полюбить применяться '\nE                                                               'запустить научить '\nE                                                               'жестокий.',\nE                                                'erp_id': '67975400067',\nE                                                'has_expiration_date': 'true',\nE                                                'has_mark': 'true',\nE                                                'height': 1524,\nE                                                'length': 8454,\nE                                                'name': 'AUTOTEST_FROM_BATCH_Бабочка '\nE                                                        'прощение аллея зато.',\nE                                                'packing_type': 'Тест-коробка',\nE                                                'price': 5683,\nE                                                'unit': 'тест-шт',\nE                                                'weight': 1685,\nE                                                'width': 1046}}}\nE         \nE         Full diff:\nE         - {}\nE         + {\nE         +     'iterable_item_removed': {\nE         +         'root[1]': {\nE         +             'barcode': '50664960631',\nE         +             'brand': '094419   ',\nE         +             'category': 'четыре',\nE         +             'currency': 'USD',\nE         +             'description': 'AUTOTEST_FROM_BATCH_Угроза сомнительный грустный проход настать '\nE         +             'дружно горький школьный необычный пища команда тюрьма.',\nE         +             'erp_id': '97786084735322',\nE         +             'has_expiration_date': 'true',\nE         +             'has_mark': 'true',\nE         +             'height': 3852,\nE         +             'length': 928,\nE         +             'name': 'AUTOTEST_FROM_BATCH_Армейский боец обида дыхание.',\nE         +             'packing_type': 'Тест-коробка',\nE         +             'price': 7890,\nE         +             'unit': 'тест-шт',\nE         +             'weight': 3537,\nE         +             'width': 2912,\nE         +         },\nE         +         'root[2]': {\nE         +             'barcode': '890352461728',\nE         +             'brand': '082263   ',\nE         +             'category': 'низкий',\nE         +             'currency': 'USD',\nE         +             'description': 'AUTOTEST_FROM_BATCH_Разводить порог изображать полюбить '\nE         +             'применяться запустить научить жестокий.',\nE         +             'erp_id': '67975400067',\nE         +             'has_expiration_date': 'true',\nE         +             'has_mark': 'true',\nE         +             'height': 1524,\nE         +             'length': 8454,\nE         +             'name': 'AUTOTEST_FROM_BATCH_Бабочка прощение аллея зато.',\nE         +             'packing_type': 'Тест-коробка',\nE         +             'price': 5683,\nE         +             'unit': 'тест-шт',\nE         +             'weight': 1685,\nE         +             'width': 1046,\nE         +         },\nE         +     },\nE         + }\n\ntests/fmcg/test_lk/test_sku.py:132: AssertionError"}, "description": "\n        Создаем товары загрузкой через файл\n        Ожидаемый результат: данные из файла и данные загруженные в БД одинаковы\n        ", "steps": [{"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/account/sign-in", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "37797cd9-4ad5-4e00-ae31-4189b0017d25-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "912aa092-0062-44a8-b097-fbb942f06acb-attachment.json", "type": "application/json"}], "start": 1775518762472, "stop": 1775518762472}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "2cbf0dff-9506-4aaf-8273-cb30ac67db23-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "48493d7f-9427-48e6-ab92-40d7127cb103-attachment.json", "type": "application/json"}], "start": 1775518762472, "stop": 1775518762472}], "attachments": [{"name": "cURL", "source": "bc96295b-3b5f-4d50-804b-3d3802ee657d-attachment.txt", "type": "text/plain"}], "start": 1775518762472, "stop": 1775518762472}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/unit", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "6669a769-5545-4122-8a6f-0d8e2ce5d35f-attachment.json", "type": "application/json"}], "start": 1775518762561, "stop": 1775518762561}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "e0711dd9-aa28-4739-b1d7-9140a9958768-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "87a93695-6065-4b92-ba95-5533f8567d11-attachment.json", "type": "application/json"}], "start": 1775518762561, "stop": 1775518762561}], "attachments": [{"name": "cURL", "source": "3a0b4e88-1735-495d-aa70-2f313de1edcd-attachment.txt", "type": "text/plain"}], "start": 1775518762561, "stop": 1775518762561}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/packingtype", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "608a31b6-a0b0-4c6d-aeab-2fee57b2dc43-attachment.json", "type": "application/json"}], "start": 1775518762656, "stop": 1775518762657}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "d47e27a2-5b92-4ce4-8082-9512c8212a57-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "9a1520df-bd6e-470b-a399-9f976572d6cd-attachment.json", "type": "application/json"}], "start": 1775518762657, "stop": 1775518762657}], "attachments": [{"name": "cURL", "source": "c12e3ad4-76a0-44d0-893c-c038cc052b3d-attachment.txt", "type": "text/plain"}], "start": 1775518762656, "stop": 1775518762657}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/categories", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "72c73604-e868-4979-9b48-738466d6ea86-attachment.json", "type": "application/json"}], "start": 1775518762859, "stop": 1775518762859}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "67031cb2-db72-4c02-8ea8-553fd3b9474e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "039357e3-f247-4f83-a430-7fcd9400b041-attachment.json", "type": "application/json"}], "start": 1775518762860, "stop": 1775518762860}], "attachments": [{"name": "cURL", "source": "41c815cd-acaa-44f3-843a-84502ad61476-attachment.txt", "type": "text/plain"}], "start": 1775518762859, "stop": 1775518762860}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/brands", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "61605898-abcd-4af8-93ce-bffa58899182-attachment.json", "type": "application/json"}], "start": 1775518763473, "stop": 1775518763473}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "ff059242-8450-4cac-b012-5ad62a545a4a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "47e2b50c-366b-4a52-8671-e04b2aff38f2-attachment.json", "type": "application/json"}], "start": 1775518763473, "stop": 1775518763475}], "attachments": [{"name": "cURL", "source": "767e7e19-cd04-4a63-930f-c8804c0d6e7a-attachment.txt", "type": "text/plain"}], "start": 1775518763473, "stop": 1775518763475}, {"name": "Waiter function: wait_sku_batch_upload", "status": "passed", "steps": [{"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku/batch", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "579fc75e-7cbb-451f-96e0-42613888900e-attachment.json", "type": "application/json"}], "start": 1775518763618, "stop": 1775518763618}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "7827d8f7-1e40-48f0-ad6f-4775d830f8d9-attachment.json", "type": "application/json"}], "start": 1775518763618, "stop": 1775518763618}], "attachments": [{"name": "cURL", "source": "7e53097e-d47f-4d94-a81e-f122cd4d6a5c-attachment.txt", "type": "text/plain"}], "start": 1775518763618, "stop": 1775518763618}], "start": 1775518763575, "stop": 1775518763621}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "bb05571f-9018-4291-8da0-b429b76fab2f-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "1a1345a8-0b09-40aa-98fc-d4b775a232c3-attachment.json", "type": "application/json"}], "start": 1775518763632, "stop": 1775518763632}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "e759a92d-b971-45ab-80b4-404a004cd04e-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "3f6a2d75-478f-4ee0-9819-abd11e686cf0-attachment.json", "type": "application/json"}], "start": 1775518763633, "stop": 1775518763633}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "9cbce3fa-8957-408d-a0bc-76efeb38a4da-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "df570f01-3181-4269-9a56-2fde3243109c-attachment.json", "type": "application/json"}], "start": 1775518763634, "stop": 1775518763634}], "attachments": [{"name": "log", "source": "e8acda67-3745-4de8-825f-c2c9c542488e-attachment.txt", "type": "text/plain"}], "start": 1775518762373, "stop": 1775518763931, "uuid": "4db121a6-553a-466c-bc0f-90425a204cf8", "historyId": "d39d990099806e0db1e27717aa9eb5f1", "testCaseId": "d39d990099806e0db1e27717aa9eb5f1", "fullName": "tests.fmcg.test_lk.test_sku.TestFMCGSKUBatch#test_sku_batch_upload", "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": "TestFMCGSKUBatch"}, {"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", "TestFMCGSKUBatch"]}