{"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: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\",\"localizedMessage\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fmcg.test_lk.test_cart.TestCart object at 0x7907b6983450>\nget_fmcg_auth_header = {'Authorization': 'Bearer ba237cf7-e0f8-45c6-b0ef-78492fe1f11d', '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 0x7907b51a6010>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer ba237cf7-e0f8-45c6-b0ef-78492fe1f11d', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.59+release120/python', ...}\nbody = {'items': [{'barcode': '90061888013834', 'quantity': 1, 'skuId': '4100000000000016702'}, {'barcode': '23184330935474', 'quantity': 1, 'skuId': '4100000000000016702'}]}\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: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\",\"localizedMessage\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\"}; \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": "9e425257-72b7-4a89-9605-89780a96d798-attachment.json", "type": "application/json"}], "start": 1775259576357, "stop": 1775259576357}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "9fce1e62-0d0f-4a4d-98c2-5607a7c4cfb0-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7c47e8a8-0f54-4f4b-899b-4e4676e7b29d-attachment.json", "type": "application/json"}], "start": 1775259576357, "stop": 1775259576358}], "attachments": [{"name": "cURL", "source": "61f0d362-3bc8-448c-95fc-84ebffbc041a-attachment.txt", "type": "text/plain"}], "start": 1775259576357, "stop": 1775259576358}, {"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": "d7ec4128-f877-4e23-ad06-d424df6a998c-attachment.json", "type": "application/json"}], "start": 1775259576457, "stop": 1775259576457}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "0bc8019e-f417-4a1d-bf2a-e64e821e8d84-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4bfe2cbd-c61f-47b5-bd4f-e97f88eb8c3d-attachment.json", "type": "application/json"}], "start": 1775259576457, "stop": 1775259576457}], "attachments": [{"name": "cURL", "source": "d71bae67-cfb4-4e5a-98fc-91ff6b78d5f8-attachment.txt", "type": "text/plain"}], "start": 1775259576457, "stop": 1775259576457}, {"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": "e65bdf14-0c20-45a0-acee-2ef57693073f-attachment.json", "type": "application/json"}], "start": 1775259576556, "stop": 1775259576556}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "21e52749-bdc3-436b-b001-748a39153b82-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b2c412e2-9f73-46dc-82c7-671cf2acda8a-attachment.json", "type": "application/json"}], "start": 1775259576556, "stop": 1775259576556}], "attachments": [{"name": "cURL", "source": "ddc2de18-cbab-4664-adfe-97e77bd6ce7e-attachment.txt", "type": "text/plain"}], "start": 1775259576556, "stop": 1775259576556}, {"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": "6e25fb11-30f1-40b7-8de9-cc7ea1342130-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "b405712d-21bf-4d98-b2a9-7237bd4f0211-attachment.json", "type": "application/json"}], "start": 1775259576732, "stop": 1775259576733}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "7b960bd8-ebaa-4fb7-af14-cf9b9526134a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "60834339-e498-4142-b017-cd255b1ee49f-attachment.json", "type": "application/json"}], "start": 1775259576733, "stop": 1775259576733}], "attachments": [{"name": "cURL", "source": "ee1de519-9f2f-43c1-9265-349bf9f32d6a-attachment.txt", "type": "text/plain"}], "start": 1775259576732, "stop": 1775259576733}, {"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": "8337eb72-5111-434e-9917-4c7c59bad09e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8007d0cf-d1df-4c68-93e0-547318b5a303-attachment.json", "type": "application/json"}], "start": 1775259576833, "stop": 1775259576834}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "fd124bb8-6fed-4a7c-82c7-600cc10823e2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ef8f4b2b-5ea3-405a-bcfb-1cf218e031ad-attachment.json", "type": "application/json"}], "start": 1775259576834, "stop": 1775259576834}], "attachments": [{"name": "cURL", "source": "ce50f0e7-caff-4168-9a3c-aead136a4951-attachment.txt", "type": "text/plain"}], "start": 1775259576833, "stop": 1775259576834}], "attachments": [{"name": "log", "source": "38bdd45f-7f20-4a53-a5ac-6cbdc051c5ba-attachment.txt", "type": "text/plain"}], "start": 1775259576280, "stop": 1775259576835, "uuid": "2ffe8f65-394e-4b8c-82a2-3d93338bc28a", "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-gtxhh2tl"}, {"name": "thread", "value": "36-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"]}