Resolve "regression : multi-artist break fake data import"
This commit is contained in:
parent
2f0b342866
commit
fc6d8ed73c
|
@ -7,11 +7,11 @@ from funkwhale_api.music import factories
|
||||||
|
|
||||||
|
|
||||||
def create_data(count=25):
|
def create_data(count=25):
|
||||||
artists = factories.ArtistFactory.create_batch(size=count)
|
acs = factories.ArtistCreditFactory.create_batch(size=count)
|
||||||
for artist in artists:
|
for ac in acs:
|
||||||
print("Creating data for", artist)
|
print("Creating data for", ac.artist)
|
||||||
albums = factories.AlbumFactory.create_batch(
|
albums = factories.AlbumFactory.create_batch(
|
||||||
artist=artist, size=random.randint(1, 5)
|
artist_credit=ac, size=random.randint(1, 5)
|
||||||
)
|
)
|
||||||
for album in albums:
|
for album in albums:
|
||||||
factories.UploadFactory.create_batch(
|
factories.UploadFactory.create_batch(
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
fix fakedata generation regression from multiartist (#2343)
|
Loading…
Reference in New Issue