mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	channel_folders: Add tests for case-insensitive duplicate name check.
This commit adds tests for checking the requirement of folder names to be unique case insensitively.
This commit is contained in:
		@@ -33,7 +33,7 @@ def check_channel_folder_name(name: str, realm: Realm) -> None:
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    if ChannelFolder.objects.filter(name__iexact=name, realm=realm).exists():
 | 
			
		||||
        raise JsonableError(_("Channel folder '{name}' already exists").format(name=name))
 | 
			
		||||
        raise JsonableError(_("Channel folder name already in use"))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def render_channel_folder_description(text: str, realm: Realm, *, acting_user: UserProfile) -> str:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user