Skip to content
Snippets Groups Projects
Verified Commit 3f415b4a authored by Georg Krause's avatar Georg Krause
Browse files

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
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
......
from funkwhale_api_client.api.albums import albums_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 = albums_retrieve.sync(client=client, id=12)
album = get_album.sync(client=client, id=12)
print(album)
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment