mediacms/tests/users/factories.py
Shubhank Saxena c28a39fa47
Segregation of Dev and Prod envs (#218)
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>
2021-07-01 18:05:43 +03:00

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