{"name": "test_hub_sorting_admin_handlers_add_package[params0]", "status": "broken", "statusDetails": {"message": "sqlalchemy.orm.exc.DetachedInstanceError: Instance <BigBagTemplate at 0x71b801166d50> 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_sorting.test_admin.TestHubSortingAdmin object at 0x71b802195c90>\nparams = {'asn_parcel_price': 3839, 'destination_code': <CountryCode.Uzbekistan: 'UZ'>, 'package_template_id': '53675707-c20b-4005-b1d9-aa59966196fb', 'registration_type': <PackageExternalRegistrationType.Registered: 'Registered'>, ...}\nhub_1_with_auth = {'headers': {'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodWJfYmFyY29kZSI6Ijk5OTk5OTEiLCJodWJfdXN...ger;Operator', features_list='ZoneInbound;ZoneSorting;ZonePacking;ZoneCustoms;ZoneOsl;ZoneDispatch', is_deleted=False)}\nhub_templates_big_bag = {'CELPostal': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x71b801166f50>, 'Cainiao': <src.fr...71b801166a50>, 'Cainiao_UZ': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x71b801165850>, ...}\n\n    @pytest.mark.parametrize(\n        \"params\",\n        [\n            {\n                \"destination_code\": CountryCode.Uzbekistan,\n                \"registration_type\": PackageExternalRegistrationType.Registered,\n                \"package_template_id\": \"53675707-c20b-4005-b1d9-aa59966196fb\",\n                \"asn_parcel_price\": randint(100, 9999),\n                \"sort_plan_id\": 17,\n            },\n        ],\n    )\n    def test_hub_sorting_admin_handlers_add_package(self, params, hub_1_with_auth, hub_templates_big_bag):\n        hub_e2e_1 = V1HubE2EBuilder(\n            hub_flow=HubE2EFlow.Cainiao,\n            headers=hub_1_with_auth[\"headers\"],\n            hub=hub_1_with_auth[\"hub\"],\n            user=hub_1_with_auth[\"user\"],\n            destination_code=params[\"destination_code\"],\n            registration_type=params[\"registration_type\"],\n            danger_type=PackageExternalPackageDangerType.General,\n            asn_parcel_price=params[\"asn_parcel_price\"],\n            sort_plan_id=params[\"sort_plan_id\"],\n            package_template_id=params[\"package_template_id\"],\n>           big_bag_template_id=hub_templates_big_bag[\"Cainiao\"].big_bag_template_id,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n        )\n\ntests/hub/test_sorting/test_admin.py:96: \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 0x71b80586bf10; BigBagTemplate>\nstate = <sqlalchemy.orm.state.InstanceState object at 0x71b8015e72f0>\nattribute_names = {'big_bag_template_id', 'big_bag_type', 'cargo_prefix', 'check_weight', 'created_at', 'hub_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 <BigBagTemplate at 0x71b801166d50> 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": "9e5fcf7e-17de-4eea-b935-ce452441180a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "params", "value": "{'destination_code': <CountryCode.Uzbekistan: 'UZ'>, 'registration_type': <PackageExternalRegistrationType.Registered: 'Registered'>, 'package_template_id': '53675707-c20b-4005-b1d9-aa59966196fb', 'asn_parcel_price': 3839, 'sort_plan_id': 17}"}], "start": 1775605496440, "stop": 1775605496440, "uuid": "07047beb-1234-43fd-82c3-c795d7fec858", "historyId": "4e5ac41cf64055d12cada035adc4f214", "testCaseId": "454d3b3bd3b72b223bbccb24ea0dc991", "fullName": "tests.hub.test_sorting.test_admin.TestHubSortingAdmin#test_hub_sorting_admin_handlers_add_package", "labels": [{"name": "tag", "value": "hub-sorting"}, {"name": "tag", "value": "hub-common"}, {"name": "parentSuite", "value": "tests.hub.test_sorting"}, {"name": "suite", "value": "test_admin"}, {"name": "subSuite", "value": "TestHubSortingAdmin"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-2-siu7piq1"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.hub.test_sorting.test_admin"}], "titlePath": ["tests", "hub", "test_sorting", "test_admin.py", "TestHubSortingAdmin"]}