{"name": "test_invoice_batch_upload_with_incomplete_columns[2-quantity]", "status": "broken", "statusDetails": {"message": "UnboundLocalError: cannot access local variable 'token' where it is not associated with a value", "trace": "@fixture(scope=\"class\")\n    def get_fmcg_auth_header():\n        random_user = random_fmcg_user()\n        try:\n>           token = sign_in(phone=random_user.phone).access_token\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nsrc/framework/fmcg/fixtures/lk.py:24: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/helpers/fmcg_auth.py:13: in sign_in\n    return AccountApi().api_v1_account_sign_in_post(body=SignDto(phone=phone, password=FmcgLKAutotest.password)).data\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/account_api.py:454: in api_v1_account_sign_in_post\n    return self.api_v1_account_sign_in_post_with_http_info(body, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/account_api.py:525: in api_v1_account_sign_in_post_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 0x7679a1aaba10>\nresource_path = '/api/v1/account/sign-in', method = 'POST', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.70+develop/python', 'x-aer-app-name': 'python-autotests', ...}\nbody = {'password': '1234', 'phone': '+79099910017'}, post_params = []\nfiles = {}, response_type = 'AuthDetailsDto'\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: POST https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/account/sign-in; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: {\"message\":\"Connection refused executing POST http://dm-fmcg-be-service-account.dm.svc.cluster.local/api/v1/account/sign-in\",\"localizedMessage\":\"Connection refused executing POST http://dm-fmcg-be-service-account.dm.svc.cluster.local/api/v1/account/sign-in\"}; \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\n\nDuring handling of the above exception, another exception occurred:\n\n    @fixture(scope=\"class\")\n    def get_fmcg_auth_header():\n        random_user = random_fmcg_user()\n        try:\n            token = sign_in(phone=random_user.phone).access_token\n            yield {\"Authorization\": f\"Bearer {token}\"}\n        finally:\n>           FMCGCartBuilder().set_user_auth(token).fill_cart(body={\"items\": []})\n                                            ^^^^^\nE           UnboundLocalError: cannot access local variable 'token' where it is not associated with a value\n\nsrc/framework/fmcg/fixtures/lk.py:27: UnboundLocalError"}, "description": "\n        В файле для создания заявки не заполняем обязательные поля\n        Ожидаемый результат: status code 500 при попытке загрузки\n        ", "attachments": [{"name": "log", "source": "56143c45-6b93-456d-a7a5-b30fda7bcd65-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "column_number", "value": "2"}, {"name": "column_name", "value": "'quantity'"}], "start": 1775636234607, "stop": 1775636234607, "uuid": "3f7766f3-e441-4ac6-a12d-a53b013dbb6e", "historyId": "22da3cc4851995af0ce001f45e672dd8", "testCaseId": "388963f19bb718ca3c604cbc495fbfc7", "fullName": "tests.fmcg.test_lk.test_invoice.TestFMCGInvoiceBatchWithSku#test_invoice_batch_upload_with_incomplete_columns", "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_invoice"}, {"name": "subSuite", "value": "TestFMCGInvoiceBatchWithSku"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-x106l0j2"}, {"name": "thread", "value": "39-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_invoice"}], "titlePath": ["tests", "fmcg", "test_lk", "test_invoice.py", "TestFMCGInvoiceBatchWithSku"]}