Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
models: Remove unused `receives_stream_notifications` function.
Abhijeet Prasad Bodas3990b183ceb6
diff --git a/zerver/models.py b/zerver/models.pyindex 338954b3b25..46e73f6590d 100644--- a/zerver/models.py+++ b/zerver/models.py@@ -1665,10 +1665,6 @@ def receives_online_push_notifications(user_profile: UserProfile) -> bool:return user_profile.enable_online_push_notifications and not user_profile.is_bot-def receives_stream_notifications(user_profile: UserProfile) -> bool:- return user_profile.enable_stream_push_notifications and not user_profile.is_bot--def remote_user_to_email(remote_user: str) -> str:if settings.SSO_APPEND_DOMAIN is not None:remote_user += "@" + settings.SSO_APPEND_DOMAINdiff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex 2e45148a78b..eaca359e8ea 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -73,7 +73,6 @@ from zerver.models import (receives_offline_email_notifications,receives_offline_push_notifications,receives_online_push_notifications,- receives_stream_notifications,)if settings.ZILENCER_ENABLED:@@ -2257,24 +2256,6 @@ class TestReceivesNotificationsFunctions(ZulipTestCase):self.assertTrue(receives_offline_push_notifications(self.user))self.assertFalse(receives_offline_email_notifications(self.user))- def test_receivers_stream_notifications_when_user_is_a_bot(self) -> None:- self.user.is_bot = True-- self.user.enable_stream_push_notifications = True- self.assertFalse(receives_stream_notifications(self.user))-- self.user.enable_stream_push_notifications = False- self.assertFalse(receives_stream_notifications(self.user))-- def test_receivers_stream_notifications_when_user_is_not_a_bot(self) -> None:- self.user.is_bot = False-- self.user.enable_stream_push_notifications = True- self.assertTrue(receives_stream_notifications(self.user))-- self.user.enable_stream_push_notifications = False- self.assertFalse(receives_stream_notifications(self.user))-class TestPushNotificationsContent(ZulipTestCase):def test_fixtures(self) -> None: