mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 21:29:24 +02:00
Fixed #54: Now use pytest everywhere \o/
This commit is contained in:
parent
a7758395ee
commit
099cdfa99c
65 changed files with 1466 additions and 1467 deletions
13
api/funkwhale_api/playlists/factories.py
Normal file
13
api/funkwhale_api/playlists/factories.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
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'
|
Loading…
Add table
Add a link
Reference in a new issue