mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:39:25 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -6,13 +6,13 @@ from funkwhale_api.users.factories import UserFactory
|
|||
|
||||
@registry.register
|
||||
class RadioFactory(factory.django.DjangoModelFactory):
|
||||
name = factory.Faker('name')
|
||||
description = factory.Faker('paragraphs')
|
||||
name = factory.Faker("name")
|
||||
description = factory.Faker("paragraphs")
|
||||
user = factory.SubFactory(UserFactory)
|
||||
config = []
|
||||
|
||||
class Meta:
|
||||
model = 'radios.Radio'
|
||||
model = "radios.Radio"
|
||||
|
||||
|
||||
@registry.register
|
||||
|
@ -20,15 +20,16 @@ class RadioSessionFactory(factory.django.DjangoModelFactory):
|
|||
user = factory.SubFactory(UserFactory)
|
||||
|
||||
class Meta:
|
||||
model = 'radios.RadioSession'
|
||||
model = "radios.RadioSession"
|
||||
|
||||
|
||||
@registry.register(name='radios.CustomRadioSession')
|
||||
@registry.register(name="radios.CustomRadioSession")
|
||||
class RadioSessionFactory(factory.django.DjangoModelFactory):
|
||||
user = factory.SubFactory(UserFactory)
|
||||
radio_type = 'custom'
|
||||
radio_type = "custom"
|
||||
custom_radio = factory.SubFactory(
|
||||
RadioFactory, user=factory.SelfAttribute('..user'))
|
||||
RadioFactory, user=factory.SelfAttribute("..user")
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = 'radios.RadioSession'
|
||||
model = "radios.RadioSession"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue