Resolve notification worker items to tenants

This commit is contained in:
2026-08-04 09:29:36 +02:00
parent 3c71422b90
commit bb59342b24
3 changed files with 25 additions and 1 deletions
+13
View File
@@ -467,6 +467,19 @@ class NotificationServiceTests(unittest.TestCase):
)
self.assertEqual(payload["source_module"], "scheduling")
self.assertEqual(payload["status"], "pending")
self.assertEqual(
"tenant-1",
capability.tenant_id_for_notification(
session,
notification_id=str(payload["id"]),
),
)
self.assertIsNone(
capability.tenant_id_for_notification(
session,
notification_id="missing",
)
)
def test_summary_counts_unread_active_notifications(self) -> None:
with self.Session() as session: