mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:29:17 +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
|
@ -64,6 +64,7 @@ class ArtistFactory(
|
|||
mbid = factory.Faker("uuid4")
|
||||
fid = factory.Faker("federation_url")
|
||||
playable = playable_factory("track__album__artist")
|
||||
attachment_cover = factory.SubFactory(common_factories.AttachmentFactory)
|
||||
|
||||
class Meta:
|
||||
model = "music.Artist"
|
||||
|
@ -111,6 +112,7 @@ class TrackFactory(
|
|||
album = factory.SubFactory(AlbumFactory)
|
||||
position = 1
|
||||
playable = playable_factory("track")
|
||||
attachment_cover = factory.SubFactory(common_factories.AttachmentFactory)
|
||||
|
||||
class Meta:
|
||||
model = "music.Track"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue