Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
3
Indexable
Never
(.venv) shivanisangwan:galaxy $ ipython -i scripts/db_shell.py -- -c config/galaxy.yml
Python 3.7.3 (default, Mar 28 2022, 19:39:11) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.34.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from galaxy.managers.hdas import HDAManager
   ...: 

In [2]: from galaxy.managers.notification import NotificationManager

In [3]: from galaxy.model import (
   ...:     Notification,
   ...:     User,
   ...:     UserNotificationAssociation,
   ...: )

In [4]: notification = Notification()

In [5]: assert notification.id is not None
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-5-4be1f294b4be> in <module>
----> 1 assert notification.id is not None

AssertionError: 

In [6]: from galaxy.model.scoped_session import galaxy_scoped_session

In [7]: from galaxy.model.unittest_utils import GalaxyDataTestApp

In [8]: app = GalaxyDataTestApp()

In [9]: app.model.session.add(notification)

In [10]: assert notification.id is not None
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-10-4be1f294b4be> in <module>
----> 1 assert notification.id is not None

AssertionError: 

In [11]: