mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	tests: Fix incorrect use of get_realm_by_email_domain.
This commit is contained in:
		@@ -118,14 +118,14 @@ class PersonalMessageTriggersTest(ZulipTestCase):
 | 
				
			|||||||
        user_profile = self.example_user("othello")
 | 
					        user_profile = self.example_user("othello")
 | 
				
			||||||
        self.bot_user = do_create_user(email="testvabs-bot@zulip.com",
 | 
					        self.bot_user = do_create_user(email="testvabs-bot@zulip.com",
 | 
				
			||||||
                                       password="test",
 | 
					                                       password="test",
 | 
				
			||||||
                                       realm=get_realm_by_email_domain("zulip.com"),
 | 
					                                       realm=get_realm("zulip"),
 | 
				
			||||||
                                       full_name="The Test Bot",
 | 
					                                       full_name="The Test Bot",
 | 
				
			||||||
                                       short_name="bot",
 | 
					                                       short_name="bot",
 | 
				
			||||||
                                       bot_type=UserProfile.OUTGOING_WEBHOOK_BOT,
 | 
					                                       bot_type=UserProfile.OUTGOING_WEBHOOK_BOT,
 | 
				
			||||||
                                       bot_owner=user_profile)
 | 
					                                       bot_owner=user_profile)
 | 
				
			||||||
        self.temp_bot = do_create_user(email="temp-bot@zulip.com",
 | 
					        self.temp_bot = do_create_user(email="temp-bot@zulip.com",
 | 
				
			||||||
                                       password="temp",
 | 
					                                       password="temp",
 | 
				
			||||||
                                       realm=get_realm_by_email_domain("zulip.com"),
 | 
					                                       realm=get_realm("zulip"),
 | 
				
			||||||
                                       full_name="The Temp test Bot",
 | 
					                                       full_name="The Temp test Bot",
 | 
				
			||||||
                                       short_name="tempbot",
 | 
					                                       short_name="tempbot",
 | 
				
			||||||
                                       bot_type=UserProfile.OUTGOING_WEBHOOK_BOT,
 | 
					                                       bot_type=UserProfile.OUTGOING_WEBHOOK_BOT,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user