Skip to content

armgit / zulip

Public Imported from GitHub
0

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.py
index 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_id
realm.signup_notifications_stream = stream
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index 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")