Added some test guards for some recently added auth tests.
Refs #19061, #19057.
This commit is contained in:
parent
24b2aad8e3
commit
81f5d4a1a7
|
@ -17,6 +17,7 @@ class ModWsgiHandlerTestCase(TransactionTestCase):
|
||||||
group = Group.objects.create(name='test_group')
|
group = Group.objects.create(name='test_group')
|
||||||
user1.groups.add(group)
|
user1.groups.add(group)
|
||||||
|
|
||||||
|
@skipIfCustomUser
|
||||||
def test_check_password(self):
|
def test_check_password(self):
|
||||||
"""
|
"""
|
||||||
Verify that check_password returns the correct values as per
|
Verify that check_password returns the correct values as per
|
||||||
|
|
|
@ -100,11 +100,13 @@ class UserManagerTestCase(TestCase):
|
||||||
'The given username must be set',
|
'The given username must be set',
|
||||||
User.objects.create_user, username='')
|
User.objects.create_user, username='')
|
||||||
|
|
||||||
|
|
||||||
class IsActiveTestCase(TestCase):
|
class IsActiveTestCase(TestCase):
|
||||||
"""
|
"""
|
||||||
Tests the behavior of the guaranteed is_active attribute
|
Tests the behavior of the guaranteed is_active attribute
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@skipIfCustomUser
|
||||||
def test_builtin_user_isactive(self):
|
def test_builtin_user_isactive(self):
|
||||||
user = User.objects.create(username='foo', email='foo@bar.com')
|
user = User.objects.create(username='foo', email='foo@bar.com')
|
||||||
# is_active is true by default
|
# is_active is true by default
|
||||||
|
|
Loading…
Reference in New Issue