# -*- coding: utf-8 -*-

# Third Party Stuff
import factory
from django.conf import settings


class Factory(factory.DjangoModelFactory):
    class Meta:
        strategy = factory.CREATE_STRATEGY
        model = None
        abstract = True


class UserFactory(Factory):
    class Meta:
        model = settings.AUTH_USER_MODEL

    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.set_password('123123'))


def create_user(**kwargs):
    "Create an user along with their dependencies"
    return UserFactory.create(**kwargs)

17e42765380dbd6cf7d8bd7a461fc0159d4300f2
<mask token>


class UserFactory(Factory):


    class Meta:
        model = settings.AUTH_USER_MODEL
    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.
        set_password('123123'))


<mask token>

<mask token>


class Factory(factory.DjangoModelFactory):


    class Meta:
        strategy = factory.CREATE_STRATEGY
        model = None
        abstract = True


class UserFactory(Factory):


    class Meta:
        model = settings.AUTH_USER_MODEL
    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.
        set_password('123123'))


<mask token>

<mask token>


class Factory(factory.DjangoModelFactory):


    class Meta:
        strategy = factory.CREATE_STRATEGY
        model = None
        abstract = True


class UserFactory(Factory):


    class Meta:
        model = settings.AUTH_USER_MODEL
    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.
        set_password('123123'))


def create_user(**kwargs):
    """Create an user along with their dependencies"""
    return UserFactory.create(**kwargs)

import factory
from django.conf import settings


class Factory(factory.DjangoModelFactory):


    class Meta:
        strategy = factory.CREATE_STRATEGY
        model = None
        abstract = True


class UserFactory(Factory):


    class Meta:
        model = settings.AUTH_USER_MODEL
    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.
        set_password('123123'))


def create_user(**kwargs):
    """Create an user along with their dependencies"""
    return UserFactory.create(**kwargs)

# -*- coding: utf-8 -*-

# Third Party Stuff
import factory
from django.conf import settings


class Factory(factory.DjangoModelFactory):
    class Meta:
        strategy = factory.CREATE_STRATEGY
        model = None
        abstract = True


class UserFactory(Factory):
    class Meta:
        model = settings.AUTH_USER_MODEL

    email = factory.Sequence(lambda n: 'user%04d@email.com' % n)
    password = factory.PostGeneration(lambda obj, *args, **kwargs: obj.set_password('123123'))


def create_user(**kwargs):
    "Create an user along with their dependencies"
    return UserFactory.create(**kwargs)
