Fix typo & import in UserFactory

This commit is contained in:
Adam Dobrawy 2015-11-14 14:15:00 +01:00
parent 794c9f1ce7
commit c86d5c928c

View File

@ -1,12 +1,11 @@
from feder.users import models
import factory
class UserFactory(factory.django.DjangoModelFactory):
username = factory.Sequence(lambda n: 'user-{0}'.format(n))
email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n))
password = factory.PosteGnerationMethodCall('set_password', 'password')
password = factory.PostGenerationMethodCall('set_password', 'password')
class Meta:
model = models.User
model = 'users.User'
django_get_or_create = ('username', )