Skip to content
Snippets Groups Projects
Commit b4662b53 authored by Andreasjj's avatar Andreasjj Committed by Liam Svanåsbakken Crouch
Browse files

code-smell: comments

parent d2dac27d
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = get_user_model()
# list_display = UserAdmin.list_display + ('coach',)
fieldsets = UserAdmin.fieldsets + ((None, {"fields": ("coach",)}),)
add_fieldsets = UserAdmin.add_fieldsets + ((None, {"fields": ("coach",)}),)
......
......@@ -65,9 +65,6 @@ class UserSerializerTestCase(TestCase):
except ValidationError:
self.fail("validate_password raised ValidationError unexpectedly!")
# This test is commented out as it fails, as requested by the studass/professor at the BB forum
# This test should be successful, but because of a bug in the code (no password validators) it doesnt
"""
def test_validated_wrong_password(self):
test_data_with_wrong_password = {
'username': 'test',
......@@ -85,7 +82,6 @@ class UserSerializerTestCase(TestCase):
}
serializer = UserSerializer(data = test_data_with_wrong_password)
self.assertRaises(ValidationError, serializer.validate_password, '')
"""
def test_create(self):
# Create a user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment