Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
actions: Fix incorrect calls to do_invite_users.
Mateusz Mandera1c4ad6769ded
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex 276253fb809..517f692f052 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -671,7 +671,7 @@ class NormalActionsTest(BaseAction):streams = []for stream_name in ["Denmark", "Verona"]:streams.append(get_stream(stream_name, self.user_profile.realm))- do_invite_users(self.user_profile, ["[email protected]"], streams, False)+ do_invite_users(self.user_profile, ["[email protected]"], streams)prereg_users = PreregistrationUser.objects.filter(referred_by__realm=self.user_profile.realm)@@ -705,7 +705,7 @@ class NormalActionsTest(BaseAction):for stream_name in ["Denmark", "Scotland"]:streams.append(get_stream(stream_name, self.user_profile.realm))- do_invite_users(self.user_profile, ["[email protected]"], streams, False)+ do_invite_users(self.user_profile, ["[email protected]"], streams)prereg_user = PreregistrationUser.objects.get(email="[email protected]")events = self.verify_action(diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex 9c178c42499..59847c67e52 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -2039,15 +2039,15 @@ so we didn't send them an invitation. We did send invitations to everyone else!"for stream_name in ["Denmark", "Scotland"]:streams.append(get_stream(stream_name, self.user_profile.realm))- do_invite_users(self.user_profile, ["[email protected]"], streams, False)+ do_invite_users(self.user_profile, ["[email protected]"], streams)prereg_user = PreregistrationUser.objects.get(email="[email protected]")- do_invite_users(self.user_profile, ["[email protected]"], streams, False)- do_invite_users(self.user_profile, ["[email protected]"], streams, False)+ do_invite_users(self.user_profile, ["[email protected]"], streams)+ do_invite_users(self.user_profile, ["[email protected]"], streams)# Also send an invite from a different realm.lear = get_realm("lear")lear_user = self.lear_user("cordelia")- do_invite_users(lear_user, ["[email protected]"], [], False)+ do_invite_users(lear_user, ["[email protected]"], [])invites = PreregistrationUser.objects.filter(email__iexact="[email protected]")self.assert_length(invites, 4)