fix (test): Notification framework changed

This commit is contained in:
2025-08-09 12:16:04 +02:00
parent d5bc348453
commit 8c5099f14a
4 changed files with 27 additions and 23 deletions

View File

@@ -85,8 +85,8 @@ class TestNotifications(TestCase):
cls.test_user_1 = User.objects.create(username="Testuser1", password="SUPERSECRET", email="test@example.org")
def test_mark_read(self):
not1 = Notification.objects.create(user=self.test_user_1, text="New rats to adopt", title="🔔 New Rat alert")
not2 = Notification.objects.create(user=self.test_user_1,
not1 = Notification.objects.create(user_to_notify=self.test_user_1, text="New rats to adopt", title="🔔 New Rat alert")
not2 = Notification.objects.create(user_to_notify=self.test_user_1,
text="New wombat to adopt", title="🔔 New Wombat alert")
not1.mark_read()