kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
16 wiersze
420 B
Python
16 wiersze
420 B
Python
import factory
|
|
|
|
from funkwhale_api.factories import registry
|
|
from funkwhale_api.users.factories import UserFactory
|
|
|
|
|
|
@registry.register
|
|
class ImportRequestFactory(factory.django.DjangoModelFactory):
|
|
artist_name = factory.Faker('name')
|
|
albums = factory.Faker('sentence')
|
|
user = factory.SubFactory(UserFactory)
|
|
comment = factory.Faker('paragraph')
|
|
|
|
class Meta:
|
|
model = 'requests.ImportRequest'
|