Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
api-client-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
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
api-client-python
Commits
3f415b4a
Verified
Commit
3f415b4a
authored
2 years ago
by
Georg Krause
Browse files
Options
Downloads
Patches
Plain Diff
test(integration): Adjusts test cases to match latest lib build
parent
474c9ddc
No related branches found
No related tags found
No related merge requests found
Pipeline
#23959
passed
2 years ago
Stage: lint
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/integration/test_activity.py
+2
-3
2 additions, 3 deletions
tests/integration/test_activity.py
tests/integration/test_albums.py
+3
-3
3 additions, 3 deletions
tests/integration/test_albums.py
tests/integration/test_artists.py
+2
-2
2 additions, 2 deletions
tests/integration/test_artists.py
with
7 additions
and
8 deletions
tests/integration/test_activity.py
+
2
−
3
View file @
3f415b4a
from
funkwhale_api_client.api.activity
import
activity
_list
from
funkwhale_api_client.api.activity
import
get_
activity
def
test_activity_list
(
client
):
response
=
activity_list
.
sync_detailed
(
client
=
client
)
print
(
response
)
response
=
get_activity
.
sync_detailed
(
client
=
client
)
assert
response
.
status_code
==
200
# This endoint currently does not have any serializer, so the generated lib
...
...
This diff is collapsed.
Click to expand it.
tests/integration/test_albums.py
+
3
−
3
View file @
3f415b4a
from
funkwhale_api_client.api.albums
import
album
s_list
,
albums_retrieve
from
funkwhale_api_client.api.albums
import
get_
album
,
get_albums
from
funkwhale_api_client.models
import
PaginatedAlbumList
def
test_album_list
(
client
):
albums
:
PaginatedAlbumList
=
albums
_list
.
sync
(
client
=
client
)
albums
:
PaginatedAlbumList
=
get_
albums
.
sync
(
client
=
client
)
for
album
in
albums
.
results
:
print
(
album
.
title
)
def
test_album_retrieve
(
client
):
album
=
album
s_retrieve
.
sync
(
client
=
client
,
id
=
12
)
album
=
get_
album
.
sync
(
client
=
client
,
id
=
12
)
print
(
album
)
This diff is collapsed.
Click to expand it.
tests/integration/test_artists.py
+
2
−
2
View file @
3f415b4a
from
funkwhale_api_client.api.artists
import
artists
_list
from
funkwhale_api_client.api.artists
import
get_
artists
from
funkwhale_api_client.models
import
PaginatedArtistWithAlbumsList
def
test_artist_list
(
client
):
artists
:
PaginatedArtistWithAlbumsList
|
None
=
artists
_list
.
sync
(
client
=
client
)
artists
:
PaginatedArtistWithAlbumsList
|
None
=
get_
artists
.
sync
(
client
=
client
)
for
artist
in
artists
.
results
:
print
(
artist
.
name
)
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