Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_new_users: Select test emails deterministically.
Anders Kaseorg56518e094ced
diff --git a/zerver/tests/test_new_users.py b/zerver/tests/test_new_users.pyindex 0990451ae73..76786ee74a9 100644--- a/zerver/tests/test_new_users.py+++ b/zerver/tests/test_new_users.py@@ -1,5 +1,4 @@import datetime-import randomfrom typing import Sequencefrom unittest import mock@@ -294,10 +293,13 @@ class TestNotifyNewUser(ZulipTestCase):realm, user_count + 5, user_count + 5)+ user_no = 0+def create_new_user_and_verify_strings_in_notification_message(strings_present: Sequence[str] = [], strings_absent: Sequence[str] = []) -> None:- user_no = random.randrange(100000)+ nonlocal user_no+ user_no += 1new_user = UserProfile.objects.create(realm=realm,full_name=f"new user {user_no}",