-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Changelog | ||
========= | ||
|
||
Version 0.1.0 [2020-09-02] | ||
-------------------------- | ||
|
||
Features | ||
~~~~~~~~ | ||
|
||
- Added notification types | ||
- Added configurable notification email template | ||
- Added swappable models and extensible classes | ||
- Added REST API for CRUD operations | ||
- Added option to define notification preference | ||
- Added real-time notification alerts | ||
- Added automatic cleanup of old notifications | ||
- Added configurable host for API endpoints. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,6 +306,7 @@ def test_notification_recipients(self): | |
joe = self._create_user(username='joe', email='[email protected]') | ||
karen = self._create_user(username='karen', email='[email protected]') | ||
notify.send(sender=self.admin, type='default', recipient=karen) | ||
n = Notification.objects.first() | ||
self.client.force_login(joe) | ||
|
||
with self.subTest('Test listing all notifications'): | ||
|
@@ -322,7 +323,7 @@ def test_notification_recipients(self): | |
self.assertEqual(response.status_code, 200) | ||
self.assertIsNone(response.data) | ||
# Check Karen's notification is still unread | ||
n = Notification.objects.first() | ||
n.refresh_from_db() | ||
self.assertTrue(n.unread) | ||
|
||
with self.subTest('Test retrieving notification'): | ||
|
@@ -337,7 +338,7 @@ def test_notification_recipients(self): | |
self.assertEqual(response.status_code, 404) | ||
self.assertDictEqual(response.data, {'detail': NOT_FOUND_ERROR}) | ||
# Check Karen's notification is still unread | ||
n = Notification.objects.first() | ||
n.refresh_from_db() | ||
self.assertTrue(n.unread) | ||
|
||
with self.subTest('Test deleting notification'): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters