mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:09:16 +02:00
13 lines
324 B
Python
13 lines
324 B
Python
import factory
|
|
|
|
from funkwhale_api.factories import registry
|
|
from funkwhale_api.users.factories import UserFactory
|
|
|
|
|
|
@registry.register
|
|
class PlaylistFactory(factory.django.DjangoModelFactory):
|
|
name = factory.Faker('name')
|
|
user = factory.SubFactory(UserFactory)
|
|
|
|
class Meta:
|
|
model = 'playlists.Playlist'
|