diff --git a/openedx/core/djangoapps/notifications/tests/test_views.py b/openedx/core/djangoapps/notifications/tests/test_views.py index 23eb412487e8..45040e6b0638 100644 --- a/openedx/core/djangoapps/notifications/tests/test_views.py +++ b/openedx/core/djangoapps/notifications/tests/test_views.py @@ -518,6 +518,7 @@ def test_patch_user_notification_preference( non_editable_channels = expected_app_prefs['non_editable'].get(notification_type_name, []) if notification_channel not in non_editable_channels: expected_app_prefs['notification_types'][notification_type_name][notification_channel] = value + expected_data = remove_notifications_with_visibility_settings(expected_data) self.assertEqual(response.data, expected_data) event_name, event_data = mock_emit.call_args[0] self.assertEqual(event_name, 'edx.notifications.preferences.updated')