# Path: incuna_test_utils/factories/user.py
# class BaseUserFactory(factory.DjangoModelFactory):
#     email = factory.Sequence('email{}@example.com'.format)
# 
# Path: tests/models.py
# class User(models.Model):
#     email = models.CharField(max_length=255)
#     name = models.CharField(max_length=255)
# 
#     USERNAME_FIELD = 'email'


from incuna_test_utils.factories.user import BaseUserFactory
from tests.models import User


class UserFactory(BaseUserFactory):
    class Meta:
        model = User


def test_userfactory():
    user = UserFactory.build()

# Path: incuna_test_utils/factories/user.py
# class BaseUserFactory(factory.DjangoModelFactory):
#     email = factory.Sequence('email{}@example.com'.format)
# 
# Path: tests/models.py
# class User(models.Model):
#     email = models.CharField(max_length=255)
#     name = models.CharField(max_length=255)
# 
#     USERNAME_FIELD = 'email'


# Path: tests/factory_tests/test_user.py
from incuna_test_utils.factories.user import BaseUserFactory
from tests.models import User



class UserFactory(BaseUserFactory):
    class Meta:
        model = User


def test_userfactory():
    user = UserFactory.build()

    assert isinstance(user, User)