mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	audit log: Log which server admin deactivated a realm too.
This commit is contained in:
		@@ -437,7 +437,7 @@ class TestSupportEndpoint(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        with mock.patch("analytics.views.do_deactivate_realm") as m:
 | 
			
		||||
            result = self.client_post("/activity/support", {"realm_id": "3", "status": "deactivated"})
 | 
			
		||||
            m.assert_called_once_with(get_realm("lear"))
 | 
			
		||||
            m.assert_called_once_with(get_realm("lear"), self.example_user("iago"))
 | 
			
		||||
            self.assert_in_success_response(["Lear & Co. deactivated"], result)
 | 
			
		||||
 | 
			
		||||
        with mock.patch("analytics.views.do_reactivate_realm") as m:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user