summaryrefslogtreecommitdiff
path: root/django/contrib/auth/tests/utils.py
blob: 09b34156b55e377887d5134e9f1a28f478e81e83 (plain)
1
2
3
4
5
6
7
8
9
10
from unittest import skipIf

from django.conf import settings


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)