Untitled
unknown
plain_text
3 years ago
3.4 kB
8
Indexable
sa_session = <sqlalchemy.orm.scoping.scoped_session object at 0x11e5bd208> def test_update_notification(sa_session: galaxy_scoped_session): notificationManager = create_notification_mananger(sa_session) > notification = notificationManager.create(message="New notification") test_notification.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../lib/galaxy/managers/notification.py:39: in create notification = model.Notification(message_text=message) <string>:4: in __init__ ??? ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/orm/state.py:474: in _initialize_instance manager.dispatch.init(self, args, kwargs) ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/event/attr.py:343: in __call__ fn(*args, **kw) ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/orm/mapper.py:3610: in _event_on_init instrumenting_mapper._check_configure() ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/orm/mapper.py:1901: in _check_configure _configure_registries({self.registry}, cascade=True) ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/orm/mapper.py:3425: in _configure_registries _do_configure_registries(registries, cascade) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ registries = set(), cascade = True @util.preload_module("sqlalchemy.orm.decl_api") def _do_configure_registries(registries, cascade): registry = util.preloaded.orm_decl_api.registry orig = set(registries) for reg in registry._recurse_with_dependencies(registries): has_skip = False for mapper in reg._mappers_to_configure(): run_configure = None for fn in mapper.dispatch.before_mapper_configured: run_configure = fn(mapper, mapper.class_) if run_configure is EXT_SKIP: has_skip = True break if run_configure is EXT_SKIP: continue if getattr(mapper, "_configure_failed", False): e = sa_exc.InvalidRequestError( "One or more mappers failed to initialize - " "can't proceed with initialization of other " "mappers. Triggering mapper: '%s'. " "Original exception was: %s" % (mapper, mapper._configure_failed) ) e._configure_failed = mapper._configure_failed > raise e E sqlalchemy.exc.InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: 'mapped class User->galaxy_user'. Original exception was: Could not determine join condition between parent/child tables on relationship User.all_notifications - there are no foreign keys linking these tables. Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or specify a 'primaryjoin' expression. ../../../../../../.pyenv/versions/3.7.3/lib/python3.7/site-packages/sqlalchemy/orm/mapper.py:3460: InvalidRequestError
Editor is loading...