Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Make acting_user a mandatory kwarg for do_set_realm_signup_notifications_stream.
shanukun626cf5272385
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex 7ad74aef59a..67ce96ac85e 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -939,10 +939,7 @@ def do_set_realm_notifications_stream(def do_set_realm_signup_notifications_stream(- realm: Realm,- stream: Optional[Stream],- stream_id: int,- acting_user: Optional[UserProfile] = None,+ realm: Realm, stream: Optional[Stream], stream_id: int, *, acting_user: Optional[UserProfile]) -> None:old_value = realm.signup_notifications_stream_idrealm.signup_notifications_stream = streamdiff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex 2c808431356..982ec02f018 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -1172,6 +1172,7 @@ class NormalActionsTest(BaseAction):self.user_profile.realm,signup_notifications_stream,signup_notifications_stream_id,+ acting_user=None,))check_realm_update("events[0]", events[0], "signup_notifications_stream_id")