Skip to content

Commit

Permalink
[chore] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanus3133 committed Sep 11, 2024
1 parent 7efa79e commit 0e687b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openwisp_notifications/tests/test_notification_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ def test_post_migration_handler(self):
queryset.filter(user=org_user.user).count(), 1 * notification_types_count
)

# Global Notification Setting for admin is created
# Delete existing global notification settings
NotificationSetting.objects.filter(
user=admin, type=None, organization=None
).delete()

# Check Global Notification Setting is created
notification_type_registered_unregistered_handler(sender=admin)
self.assertEqual(
NotificationSetting.objects.filter(
user=admin, type=None, organization=None
Expand Down

0 comments on commit 0e687b4

Please sign in to comment.