{"name": "test_remove_all_items", "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 0x7654ecabd450>\nget_fmcg_auth_header = {'Authorization': 'Bearer 1a592f92-8a0d-4b0c-be7c-f20c37a07090'}\n\n    def test_remove_all_items(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:64: \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 0x7654eb95de10>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer 1a592f92-8a0d-4b0c-be7c-f20c37a07090', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.63+develop/python', ...}\nbody = {'items': [{'barcode': '67161921138059', 'quantity': 1, 'skuId': '4100000000000016753'}, {'barcode': '98045320684549', 'quantity': 1, 'skuId': '4100000000000016753'}]}\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": "c215d997-57b2-4ef9-9aad-64c71298c297-attachment.json", "type": "application/json"}], "start": 1775502116565, "stop": 1775502116565}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "32960d4f-5223-4067-b142-36208af57d42-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fe1e6a5d-8647-40b1-92bc-3bfbf52b25d4-attachment.json", "type": "application/json"}], "start": 1775502116565, "stop": 1775502116566}], "attachments": [{"name": "cURL", "source": "5072fec5-7bb3-4daa-a2ae-8fe4dc6f8568-attachment.txt", "type": "text/plain"}], "start": 1775502116565, "stop": 1775502116566}, {"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": "4e80f890-9e51-462a-a547-7b5839f9fd7b-attachment.json", "type": "application/json"}], "start": 1775502116759, "stop": 1775502116760}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "815d6271-3739-4ec9-ab3e-8b3243995715-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "aa0065cc-ac87-4127-b8a6-7586f57b8591-attachment.json", "type": "application/json"}], "start": 1775502116760, "stop": 1775502116760}], "attachments": [{"name": "cURL", "source": "31585fff-c6d1-460d-b277-52ce9bf9f493-attachment.txt", "type": "text/plain"}], "start": 1775502116759, "stop": 1775502116760}, {"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": "cab88877-8f22-4eaa-badc-6c1bd1fe7d6f-attachment.json", "type": "application/json"}], "start": 1775502116862, "stop": 1775502116862}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "46157a71-df1b-4b5c-b87c-b44313ab3b33-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e24b3804-e160-48f6-a59f-1f1a44897f4b-attachment.json", "type": "application/json"}], "start": 1775502116862, "stop": 1775502116862}], "attachments": [{"name": "cURL", "source": "8734013f-b899-40d5-b318-d6b7ac263665-attachment.txt", "type": "text/plain"}], "start": 1775502116862, "stop": 1775502116862}, {"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": "398d9b76-7340-43e9-a973-d88de9161d58-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "4e794336-0586-4e95-b2c4-aaa051845ccd-attachment.json", "type": "application/json"}], "start": 1775502117064, "stop": 1775502117065}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "7021b7fc-f178-4849-9d06-170e6dda4fd2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "bf752984-be62-46a1-a5c8-1cae0f7b0a15-attachment.json", "type": "application/json"}], "start": 1775502117065, "stop": 1775502117065}], "attachments": [{"name": "cURL", "source": "b64bda42-d354-4af9-b9d9-0c9b4bbb6dfe-attachment.txt", "type": "text/plain"}], "start": 1775502117064, "stop": 1775502117065}, {"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": "a927dba7-fc4b-4a7b-8bbf-b9a245e4503e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f6f89814-bc12-4cec-aca9-095918ab2c46-attachment.json", "type": "application/json"}], "start": 1775502117237, "stop": 1775502117237}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "e450f1a2-3709-4933-aba5-b7cf1ac652b7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "bc57b422-2200-4507-bde2-7dd4df119f45-attachment.json", "type": "application/json"}], "start": 1775502117237, "stop": 1775502117237}], "attachments": [{"name": "cURL", "source": "6403253a-0ac6-43ae-a239-ae7e61322d56-attachment.txt", "type": "text/plain"}], "start": 1775502117237, "stop": 1775502117237}], "attachments": [{"name": "log", "source": "41bacf98-898f-4d4d-bb29-b7a3eb3e7c84-attachment.txt", "type": "text/plain"}], "start": 1775502116306, "stop": 1775502117238, "uuid": "079e874d-12a7-4cbb-8767-8372b44e5d23", "historyId": "82be365dfc1e01d6a96824b6518dc953", "testCaseId": "82be365dfc1e01d6a96824b6518dc953", "fullName": "tests.fmcg.test_lk.test_cart.TestCart#test_remove_all_items", "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-0-pibpolkm"}, {"name": "thread", "value": "24-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"]}