{"name": "test_change_cart_price", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item; \n Expected status code: 200; \n Actual status code: 500; \n Response body: {\"message\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\",\"localizedMessage\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fmcg.test_lk.test_cart.TestCart object at 0x70090ffa3450>\nget_fmcg_auth_header = {'Authorization': 'Bearer 60b4e4d7-f3a9-4853-b1b1-282f1129d8b5', '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_change_cart_price(self, get_fmcg_auth_header):\n        \"\"\"\n        В заполненной корзине меняем цену у товара\n        Ожидаемый результат: цена до и цена после не равны\n        \"\"\"\n>       invoice = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice()\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\ntests/fmcg/test_lk/test_cart.py:84: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/builders/lk/invoice.py:33: in create_invoice\n    cart_items = FMCGCartBuilder(headers=self.headers).fill_cart().current_cart\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/framework/fmcg/builders/lk/cart.py:24: in fill_cart\n    CartApi(headers=self.headers).api_v1_cart_add_item_put(body=request_body, **invoice_data).data.items\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py:55: in api_v1_cart_add_item_put\n    return self.api_v1_cart_add_item_put_with_http_info(body, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py:129: in api_v1_cart_add_item_put_with_http_info\n    return self.api_client.call_api(\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py:339: in call_api\n    return self.__call_api(resource_path, method,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <qacl_dm_fmcg_be_service_lk.api_client.ApiClient object at 0x70090e914110>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer 60b4e4d7-f3a9-4853-b1b1-282f1129d8b5', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.59+release120/python', ...}\nbody = {'items': [{'barcode': '54298346653440', 'quantity': 1, 'skuId': '4100000000000016728'}, {'barcode': '90572060382765', 'quantity': 1, 'skuId': '4100000000000016728'}]}\npost_params = [], files = {}, response_type = 'CartDto'\nauth_settings = ['wms-authorization'], _return_http_data_only = False\ncollection_formats = {}, _preload_content = True, _request_timeout = None\nexpected_status_code = <HTTPStatus.OK: 200>\n\n    def __call_api(\n            self, resource_path, method, path_params=None,\n            query_params=None, header_params=None, body=None, post_params=None,\n            files=None, response_type=None, auth_settings=None,\n            _return_http_data_only=None, collection_formats=None,\n            _preload_content=True, _request_timeout=None,\n            expected_status_code=HTTPStatus.OK):\n    \n        config = self.configuration\n    \n        # header parameters\n        header_params = header_params or {}\n        header_params.update(self.default_headers)\n        if self.cookie:\n            header_params['Cookie'] = self.cookie\n        if header_params:\n            header_params = self.sanitize_for_serialization(header_params)\n            header_params = dict(self.parameters_to_tuples(header_params,\n                                                           collection_formats))\n    \n        # path parameters\n        if path_params:\n            path_params = self.sanitize_for_serialization(path_params)\n            path_params = self.parameters_to_tuples(path_params,\n                                                    collection_formats)\n            for k, v in path_params:\n                # specified safe chars, encode everything\n                resource_path = resource_path.replace(\n                    '{%s}' % k,\n                    quote(str(v), safe=config.safe_chars_for_path_param)\n                )\n    \n        # query parameters\n        if query_params:\n            query_params = self.sanitize_for_serialization(query_params)\n            query_params = self.parameters_to_tuples(query_params,\n                                                     collection_formats)\n    \n        # post parameters\n        if post_params or files:\n            post_params = self.prepare_post_parameters(post_params, files)\n            post_params = self.sanitize_for_serialization(post_params)\n            post_params = self.parameters_to_tuples(post_params,\n                                                    collection_formats)\n    \n        # auth setting\n        self.update_params_for_auth(header_params, query_params, auth_settings)\n    \n        # body\n        if body:\n            body = self.sanitize_for_serialization(body)\n    \n        # request url\n        url = self.configuration.host + resource_path\n    \n        # perform request and return response\n        response_data = self.request(\n            method, url, query_params=query_params, headers=header_params,\n            post_params=post_params, body=body,\n            _preload_content=_preload_content,\n            _request_timeout=_request_timeout)\n    \n        self.last_response = response_data\n    \n        return_data = response_data\n    \n        try:\n            response_data.data\n            trace_id = response_data.urllib3_response.headers.get('x-aer-trace-id', \"\")\n        except:\n            assert response_data.status == expected_status_code, \\\n                f'Handler: {method} {url}; \\n ' \\\n                f'Expected status code: {expected_status_code}; \\n ' \\\n                f'Actual status code: {response_data.status}'\n        else:\n>           assert response_data.status == expected_status_code, \\\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                f'Handler: {method} {url}; \\n ' \\\n                f'Expected status code: {expected_status_code}; \\n ' \\\n                f'Actual status code: {response_data.status}; \\n ' \\\n                f'Response body: {response_data.data}; \\n ' \\\n                f'X-Aer-Trace-Id: {trace_id}'\nE           AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: {\"message\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\",\"localizedMessage\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\"}; \nE            X-Aer-Trace-Id:\n\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py:172: AssertionError"}, "description": "\n        В заполненной корзине меняем цену у товара\n        Ожидаемый результат: цена до и цена после не равны\n        ", "steps": [{"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": "7f3e693d-ccef-41dc-9a02-564d41ae63d3-attachment.json", "type": "application/json"}], "start": 1775432354536, "stop": 1775432354536}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "c620f4ca-e85b-4ba8-9281-cf9aafa546c1-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "636bd54f-5890-4686-a3c5-cb62cb91c854-attachment.json", "type": "application/json"}], "start": 1775432354536, "stop": 1775432354536}], "attachments": [{"name": "cURL", "source": "8c0bef79-4331-43ba-befb-c3ba769e285b-attachment.txt", "type": "text/plain"}], "start": 1775432354536, "stop": 1775432354537}, {"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": "3f759a9b-bc47-47d9-8a73-1a7e058a7fb4-attachment.json", "type": "application/json"}], "start": 1775432354562, "stop": 1775432354563}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "62b8977b-7541-4bfe-a382-18464cbd2366-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "07aafb7d-920f-449f-9c22-a840c1a0edcd-attachment.json", "type": "application/json"}], "start": 1775432354563, "stop": 1775432354563}], "attachments": [{"name": "cURL", "source": "3692f53c-58cf-4d56-a4f2-95eba052e902-attachment.txt", "type": "text/plain"}], "start": 1775432354562, "stop": 1775432354563}, {"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": "0e051cda-f81b-49ef-b1e2-10247a7c8325-attachment.json", "type": "application/json"}], "start": 1775432354590, "stop": 1775432354590}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "43f9f915-7241-4392-908c-a5433a7e4737-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f5c9c5e2-bf30-485f-aebc-6a51b3a57a20-attachment.json", "type": "application/json"}], "start": 1775432354590, "stop": 1775432354590}], "attachments": [{"name": "cURL", "source": "547c61b0-c096-484e-b29f-1165219b89bc-attachment.txt", "type": "text/plain"}], "start": 1775432354590, "stop": 1775432354590}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "66cf6632-aa9f-4e4e-9919-d1d7b816367c-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "7e9a7133-bc46-4ef1-b27c-8785a7b44efa-attachment.json", "type": "application/json"}], "start": 1775432354623, "stop": 1775432354623}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "83c9aa20-6958-4b7e-9969-e7b0cb658df2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6f0afdaf-89a4-44b6-abff-4635559a927f-attachment.json", "type": "application/json"}], "start": 1775432354623, "stop": 1775432354623}], "attachments": [{"name": "cURL", "source": "69101002-1f78-4faa-bef5-2c9135c2bcd5-attachment.txt", "type": "text/plain"}], "start": 1775432354623, "stop": 1775432354623}, {"name": "PUT → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "3b592ca5-606f-40f5-9d94-af9ad13c9457-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f6d18254-baa1-41c9-9c4e-67416a4a4e68-attachment.json", "type": "application/json"}], "start": 1775432354656, "stop": 1775432354656}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "2f82f6f1-d8ce-4184-b502-bdc6c8d67669-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ab934c1b-aa33-4f5b-a342-c1f6d331d2aa-attachment.json", "type": "application/json"}], "start": 1775432354656, "stop": 1775432354656}], "attachments": [{"name": "cURL", "source": "8bb654f4-f6d7-4ad2-8973-a0724b7946e2-attachment.txt", "type": "text/plain"}], "start": 1775432354656, "stop": 1775432354656}], "attachments": [{"name": "log", "source": "d5b1e5d5-2bbf-48f5-840b-68f5997181e6-attachment.txt", "type": "text/plain"}], "start": 1775432354512, "stop": 1775432354657, "uuid": "2468eda9-0b92-4493-9a17-b8512c77af00", "historyId": "4fe2bfd259cc7f1f06dccd89ea4af4fb", "testCaseId": "4fe2bfd259cc7f1f06dccd89ea4af4fb", "fullName": "tests.fmcg.test_lk.test_cart.TestCart#test_change_cart_price", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_cart"}, {"name": "subSuite", "value": "TestCart"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-3-jdfb6amg"}, {"name": "thread", "value": "30-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_cart"}], "titlePath": ["tests", "fmcg", "test_lk", "test_cart.py", "TestCart"]}