kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
14 wiersze
324 B
Python
14 wiersze
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'
|