kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
ImportRequest factory
rodzic
3fa7d0009e
commit
8900f5581b
|
@ -0,0 +1,15 @@
|
|||
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'
|
Ładowanie…
Reference in New Issue