Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Jensen Jonassen
tdt4242-base
Commits
b4662b53
Commit
b4662b53
authored
3 years ago
by
Andreasjj
Committed by
Liam Svanåsbakken Crouch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
code-smell: comments
parent
d2dac27d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/secfit/users/admin.py
+0
-1
0 additions, 1 deletion
backend/secfit/users/admin.py
backend/secfit/users/tests.py
+0
-4
0 additions, 4 deletions
backend/secfit/users/tests.py
with
0 additions
and
5 deletions
backend/secfit/users/admin.py
+
0
−
1
View file @
b4662b53
...
...
@@ -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
"
,)}),)
...
...
This diff is collapsed.
Click to expand it.
backend/secfit/users/tests.py
+
0
−
4
View file @
b4662b53
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment