{"name": "test_hub_cpt_package_inbound_customs[hub_cpt_shipment_inbound0-hub_cpt_shipment0]", "status": "broken", "statusDetails": {"message": "sqlalchemy.orm.exc.DetachedInstanceError: Instance <SortPlan at 0x72111c306a10> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)", "trace": "request = <SubRequest 'hub_cpt_shipment' for <Function test_hub_cpt_package_inbound_customs[hub_cpt_shipment_inbound0-hub_cpt_shipment0]>>\nhub_4_with_auth = {'headers': {'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodWJfYmFyY29kZSI6Ijk5OTk5OTQiLCJodWJfdXN...ger;Operator', features_list='ZoneInbound;ZoneSorting;ZonePacking;ZoneCustoms;ZoneOsl;ZoneDispatch', is_deleted=False)}\nhub_meta_sort_plans = {'1    RU TAN 5POST PODOLSK': <src.framework.hub.db.schemas.configuration.SortPlan object at 0x72111c305110>, '2    RU...5250>, '4    RU TAN 5POST LOBNYA': <src.framework.hub.db.schemas.configuration.SortPlan object at 0x72111c304e90>, ...}\n\n    @pytest.fixture(\n        scope=\"function\",\n        params=[{\"with_big_bags\": False, \"is_customs\": False, \"items_count\": 3, \"sort_plan\": CPT_TEST_SORT_PLAN_NAME}],\n    )\n    def hub_cpt_shipment(request, hub_4_with_auth, hub_meta_sort_plans):\n        param_sort_plan = request.param.get(\"sort_plan\", CPT_TEST_SORT_PLAN_NAME)\n        param_with_big_bags = request.param.get(\"with_big_bags\", False)\n        param_is_customs = request.param.get(\"is_customs\", False)\n        param_items_count = request.param.get(\"items_count\", 3)\n>       sort_plan = HubConfigurationQueries().get_sort_plan_by_id(sort_plan_id=hub_meta_sort_plans[param_sort_plan].id)\n                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nsrc/framework/hub/fixtures/cpt/shipment.py:23: \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 0x72112092f250; SortPlan>\nstate = <sqlalchemy.orm.state.InstanceState object at 0x72111c7d5790>\nattribute_names = {'created_at', 'dispatch_zone_id', 'extra_inspection_zone_id', 'id', 'inbound_plan_id', 'inspection_zone_id', ...}\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 <SortPlan at 0x72111c306a10> 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": "44e0c793-414f-4622-acfe-2fd752d8278f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "hub_cpt_shipment_inbound", "value": "{'to_inspection': False}"}, {"name": "hub_cpt_shipment", "value": "{'is_customs': True}"}], "start": 1775691913576, "stop": 1775691913576, "uuid": "9cdd87a3-e72d-4c25-b774-00ce26a6c6ff", "historyId": "a874278bc25d76115b2710ddec2d1bba", "testCaseId": "9e7fa8cded3b972eeaca41015dc70a5d", "fullName": "tests.hub.test_cpt.test_packages_inbound.TestHubCptPackageInbound#test_hub_cpt_package_inbound_customs", "labels": [{"name": "tag", "value": "hub-flow-cpt"}, {"name": "parentSuite", "value": "tests.hub.test_cpt"}, {"name": "suite", "value": "test_packages_inbound"}, {"name": "subSuite", "value": "TestHubCptPackageInbound"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-1-9cugip53"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.hub.test_cpt.test_packages_inbound"}], "titlePath": ["tests", "hub", "test_cpt", "test_packages_inbound.py", "TestHubCptPackageInbound"]}