Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
490
Issue boards
Milestones
Wiki
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
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
funkwhale
funkwhale
Commits
6572db3a
Verified
Commit
6572db3a
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Failing test
parent
d000a132
No related branches found
No related tags found
No related merge requests found
Pipeline
#2128
canceled with stages
in 3 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/tests/manage/test_serializers.py
+6
-1
6 additions, 1 deletion
api/tests/manage/test_serializers.py
with
6 additions
and
1 deletion
api/tests/manage/test_serializers.py
+
6
−
1
View file @
6572db3a
...
...
@@ -20,13 +20,18 @@ def test_user_update_permission(factories):
)
s
=
serializers
.
ManageUserSerializer
(
user
,
data
=
{
"
is_active
"
:
False
,
"
permissions
"
:
{
"
federation
"
:
False
,
"
upload
"
:
True
}},
data
=
{
"
is_active
"
:
False
,
"
permissions
"
:
{
"
federation
"
:
False
,
"
upload
"
:
True
},
"
upload_quota
"
:
12
,
},
)
s
.
is_valid
(
raise_exception
=
True
)
s
.
save
()
user
.
refresh_from_db
()
assert
user
.
is_active
is
False
assert
user
.
upload_quota
==
12
assert
user
.
permission_federation
is
False
assert
user
.
permission_upload
is
True
assert
user
.
permission_library
is
False
...
...
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