mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 19:03:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			515 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			515 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from models.account import TenantAccountRole
 | |
| 
 | |
| 
 | |
| def test_account_is_privileged_role() -> None:
 | |
|     assert TenantAccountRole.ADMIN == 'admin'
 | |
|     assert TenantAccountRole.OWNER == 'owner'
 | |
|     assert TenantAccountRole.NORMAL == 'normal'
 | |
| 
 | |
|     assert TenantAccountRole.is_privileged_role(TenantAccountRole.ADMIN)
 | |
|     assert TenantAccountRole.is_privileged_role(TenantAccountRole.OWNER)
 | |
|     assert not TenantAccountRole.is_privileged_role(TenantAccountRole.NORMAL)
 | |
|     assert not TenantAccountRole.is_privileged_role('')
 | 
