mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 10:29:28 +02:00
See #170: add a description field on tracks, albums, tracks
This commit is contained in:
parent
424b9f133a
commit
2bc71eecfd
38 changed files with 653 additions and 59 deletions
|
@ -1256,3 +1256,22 @@ def test_search_get_fts_stop_words(settings, logged_in_api_client, factories):
|
|||
|
||||
assert response.status_code == 200
|
||||
assert response.data == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"route, factory_name",
|
||||
[
|
||||
("api:v1:artists-detail", "music.Artist"),
|
||||
("api:v1:albums-detail", "music.Album"),
|
||||
("api:v1:tracks-detail", "music.Track"),
|
||||
],
|
||||
)
|
||||
def test_detail_includes_description_key(
|
||||
route, factory_name, logged_in_api_client, factories
|
||||
):
|
||||
obj = factories[factory_name]()
|
||||
url = reverse(route, kwargs={"pk": obj.pk})
|
||||
|
||||
response = logged_in_api_client.get(url)
|
||||
|
||||
assert response.data["description"] is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue