Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale_OLD
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
jovuit
funkwhale_OLD
Commits
58333b59
Verified
Commit
58333b59
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Failing test
parent
508873df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/tests/manage/test_serializers.py
+6
-1
6 additions, 1 deletion
api/tests/manage/test_serializers.py
api/tests/playlists/test_views.py
+1
-1
1 addition, 1 deletion
api/tests/playlists/test_views.py
with
7 additions
and
2 deletions
api/tests/manage/test_serializers.py
+
6
−
1
View file @
58333b59
...
...
@@ -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.
api/tests/playlists/test_views.py
+
1
−
1
View file @
58333b59
...
...
@@ -145,7 +145,7 @@ def test_can_list_tracks_from_playlist(level, factories, logged_in_api_client):
url
=
reverse
(
"
api:v1:playlists-tracks
"
,
kwargs
=
{
"
pk
"
:
plt
.
playlist
.
pk
})
response
=
logged_in_api_client
.
get
(
url
)
serialized_plt
=
serializers
.
PlaylistTrackSerializer
(
plt
).
data
serialized_plt
[
"
track
"
][
"
is_playable
"
]
=
False
assert
response
.
data
[
"
count
"
]
==
1
assert
response
.
data
[
"
results
"
][
0
]
==
serialized_plt
...
...
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