mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 14:29:42 +02:00
See #170: cover on tracks and artists
This commit is contained in:
parent
db1cb30df8
commit
71b400a9b8
34 changed files with 582 additions and 254 deletions
|
@ -187,14 +187,6 @@ def test_track_get_file_size_in_place(factories):
|
|||
assert upload.get_file_size() == 297745
|
||||
|
||||
|
||||
def test_album_get_image_content(factories):
|
||||
album = factories["music.Album"]()
|
||||
album.get_image(data={"content": b"test", "mimetype": "image/jpeg"})
|
||||
album.refresh_from_db()
|
||||
|
||||
assert album.attachment_cover.file.read() == b"test"
|
||||
|
||||
|
||||
def test_library(factories):
|
||||
now = timezone.now()
|
||||
actor = factories["federation.Actor"]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue