mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix SA2.0 error: use Row._mapping for keyed attribute access
Ref: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#result-rows-act-like-named-tuples
This commit is contained in:
@@ -264,8 +264,8 @@ class TestUserNotifications(NotificationManagerBaseTestCase):
|
||||
actual_user_notification = self.notification_manager.get_user_notification(user, notification.id)
|
||||
|
||||
self._assert_notification_expected(actual_user_notification, expected_user_notification)
|
||||
assert actual_user_notification["seen_time"] is None
|
||||
assert actual_user_notification["deleted"] is False
|
||||
assert actual_user_notification._mapping["seen_time"] is None
|
||||
assert actual_user_notification._mapping["deleted"] is False
|
||||
|
||||
def test_update_user_notifications(self):
|
||||
user = self._create_test_user()
|
||||
|
||||
Reference in New Issue
Block a user