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:
John Davis
2024-04-02 10:08:53 -04:00
parent 3c4543b00b
commit fb018c54bc
@@ -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()