mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
refactor: Make acting_user a mandatory kwarg for do_set_realm_signup_notifications_stream.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user