mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 01:34:51 +01:00
c28a39fa47
Segregation of Dev and Prod envs, addition of tests Co-authored-by: Markos Gogoulos <mgogoulos@gmail.com> Co-authored-by: Ubuntu <shubhank@my-hostings.nxfutj5b2tlubjykddwgszqteb.bx.internal.cloudapp.net>
16 lines
307 B
Python
16 lines
307 B
Python
import factory
|
|
from django.conf import settings
|
|
from faker import Faker
|
|
|
|
fake = Faker()
|
|
User = settings.AUTH_USER_MODEL
|
|
|
|
|
|
class UserFactory(factory.django.DjangoModelFactory):
|
|
class Meta:
|
|
model = User
|
|
|
|
description = fake.paragraph(nb_sentences=4)
|
|
name = fake.name()
|
|
is_editor = True
|