{"name": "test_hub_e2e_return_uzum[6, prefix SX]", "status": "broken", "statusDetails": {"message": "sqlalchemy.orm.exc.DetachedInstanceError: Instance <PackageTemplate at 0x7f00ee712dd0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)", "trace": "self = <tests.hub.test_e2e.test_uzum.TestHubE2EReturnUzum object at 0x7f00ef719d50>\nparams = {'return_sort_plan_id': 6, 'sort_plan_id': 46, 'tracking_number_prefix': 'SX'}\nhub_1_with_auth = {'headers': {'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodWJfYmFyY29kZSI6Ijk5OTk5OTEiLCJodWJfdXN...ger;Operator', features_list='ZoneInbound;ZoneSorting;ZonePacking;ZoneCustoms;ZoneOsl;ZoneDispatch', is_deleted=False)}\nhub_templates_package = {'5post': <src.framework.hub.db.schemas.configuration.PackageTemplate object at 0x7f00ee7136d0>, '5post_CB': <src.fram...0eebf8110>, '5post_CB_MSK': <src.framework.hub.db.schemas.configuration.PackageTemplate object at 0x7f00eebf8a50>, ...}\nhub_templates_big_bag = {'CELPostal': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x7f00ed789850>, 'Cainiao': <src.fr...7f00ed789310>, 'Cainiao_UZ': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x7f00ed3415d0>, ...}\n\n    @pytest.mark.parametrize(\n        \"params\",\n        [\n            pytest.param(\n                {\"tracking_number_prefix\": \"SX\", \"sort_plan_id\": 46, \"return_sort_plan_id\": 6}, id=\"6, prefix SX\"\n            ),\n            pytest.param(\n                {\"tracking_number_prefix\": \"\", \"sort_plan_id\": 46, \"return_sort_plan_id\": 17}, id=\"17, prefix empty\"\n            ),\n        ],\n    )\n    def test_hub_e2e_return_uzum(self, params, hub_1_with_auth, hub_templates_package, hub_templates_big_bag):\n        hub_e2e = V1HubE2EBuilder(\n            hub_flow=HubE2EFlow.Cainiao,\n            return_hub_flow=HubE2EReturnFlow.Uzum,\n            headers=hub_1_with_auth[\"headers\"],\n            hub=hub_1_with_auth[\"hub\"],\n            user=hub_1_with_auth[\"user\"],\n            destination_code=CountryCode.Uzbekistan,\n            registration_type=PackageExternalRegistrationType.NO_TYPE,\n            danger_type=PackageExternalPackageDangerType.General,\n>           package_template_id=hub_templates_package[\"UzumPudo\"].template_id,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n            big_bag_template_id=hub_templates_big_bag[\"Cainiao\"].big_bag_template_id,\n            declaration_channel_type=HubChannelType.Postal,\n            declaration_document_type=HubDocumentType.PostalDispatch,\n        )\n\ntests/hub/test_e2e/test_uzum.py:238: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:569: in __get__\n    return self.impl.get(state, dict_)  # type: ignore[no-any-return]\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:1096: in get\n    value = self._fire_loader_callables(state, key, passive)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:1126: in _fire_loader_callables\n    return state._load_expired(state, passive)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state.py:828: in _load_expired\n    self.manager.expired_attribute_loader(self, toload, passive)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nmapper = <Mapper at 0x7f00f2e75010; PackageTemplate>\nstate = <sqlalchemy.orm.state.InstanceState object at 0x7f00ef7f1eb0>\nattribute_names = {'callback_directions', 'cargo_prefix', 'channel_type', 'commercial_provider_id', 'created_at', 'destination_code', ...}\npassive = symbol('PASSIVE_OFF')\n\n    def load_scalar_attributes(mapper, state, attribute_names, passive):\n        \"\"\"initiate a column-based attribute refresh operation.\"\"\"\n    \n        # assert mapper is _state_mapper(state)\n        session = state.session\n        if not session:\n>           raise orm_exc.DetachedInstanceError(\n                \"Instance %s is not bound to a Session; \"\n                \"attribute refresh operation cannot proceed\" % (state_str(state))\n            )\nE           sqlalchemy.orm.exc.DetachedInstanceError: Instance <PackageTemplate at 0x7f00ee712dd0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)\n\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/loading.py:1607: DetachedInstanceError"}, "attachments": [{"name": "log", "source": "8961f8e3-89fa-414c-b88a-1372c03593da-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "params", "value": "{'tracking_number_prefix': 'SX', 'sort_plan_id': 46, 'return_sort_plan_id': 6}"}], "start": 1775605500310, "stop": 1775605500310, "uuid": "16a039e4-bdc7-474b-931d-8e27e19a7352", "historyId": "943366fac3028e29a8deb425d1a56a76", "testCaseId": "ae4df33cbc62782bd94d975e11caef4b", "fullName": "tests.hub.test_e2e.test_uzum.TestHubE2EReturnUzum#test_hub_e2e_return_uzum", "labels": [{"name": "tag", "value": "hub-end-to-end"}, {"name": "tag", "value": "hub-flow-uzum"}, {"name": "parentSuite", "value": "tests.hub.test_e2e"}, {"name": "suite", "value": "test_uzum"}, {"name": "subSuite", "value": "TestHubE2EReturnUzum"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-1kg80ota"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.hub.test_e2e.test_uzum"}], "titlePath": ["tests", "hub", "test_e2e", "test_uzum.py", "TestHubE2EReturnUzum"]}