mirror of
				https://github.com/django/django.git
				synced 2025-11-04 09:57:47 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.conf import settings
 | 
						|
from django.utils.unittest import skipIf
 | 
						|
 | 
						|
 | 
						|
def skipIfCustomUser(test_func):
 | 
						|
    """
 | 
						|
    Skip a test if a custom user model is in use.
 | 
						|
    """
 | 
						|
    return skipIf(settings.AUTH_USER_MODEL != 'auth.User', 'Custom user model in use')(test_func)
 |