Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some test guards for some recently added auth tests.

Refs #19061, #19057.
  • Loading branch information...
commit 81f5d4a1a7b955afe530d5292726b3a8a93d7038 1 parent 24b2aad
@freakboy3742 freakboy3742 authored
View
1  django/contrib/auth/tests/handlers.py
@@ -17,6 +17,7 @@ def setUp(self):
group = Group.objects.create(name='test_group')
user1.groups.add(group)
+ @skipIfCustomUser
def test_check_password(self):
"""
Verify that check_password returns the correct values as per
View
2  django/contrib/auth/tests/models.py
@@ -100,11 +100,13 @@ def test_empty_username(self):
'The given username must be set',
User.objects.create_user, username='')
+
class IsActiveTestCase(TestCase):
"""
Tests the behavior of the guaranteed is_active attribute
"""
+ @skipIfCustomUser
def test_builtin_user_isactive(self):
user = User.objects.create(username='foo', email='foo@bar.com')
# is_active is true by default

0 comments on commit 81f5d4a

Please sign in to comment.
Something went wrong with that request. Please try again.