Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Fix tests causing internal_send_private_message with wrong realm.
Mateusz Manderaa6525731694f
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex 16834a6393e..e35eda14f7b 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -2226,7 +2226,7 @@ class InvitationsTestCase(InviteUserBase):password = "password"realm = get_realm("zulip")- inviter = UserProfile.objects.first()+ inviter = UserProfile.objects.filter(realm=realm).first()prereg_user = PreregistrationUser.objects.create(email=email, referred_by=inviter, realm=realm)diff --git a/zerver/tests/test_tutorial.py b/zerver/tests/test_tutorial.pyindex de355f8cc29..9a1b706259b 100644--- a/zerver/tests/test_tutorial.py+++ b/zerver/tests/test_tutorial.py@@ -16,7 +16,7 @@ class TutorialTests(ZulipTestCase):user = self.example_user("hamlet")welcome_bot = get_system_bot(settings.WELCOME_BOT)content = "Shortened welcome message."- internal_send_private_message(welcome_bot.realm, welcome_bot, user, content)+ internal_send_private_message(user.realm, welcome_bot, user, content)def test_tutorial_status(self) -> None:user = self.example_user("hamlet")