From c86d5c928cdefd09aca102b2a5c37f662e1426a6 Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Sat, 14 Nov 2015 14:15:00 +0100 Subject: [PATCH] Fix typo & import in UserFactory --- .../{{cookiecutter.repo_name}}/users/tests/factories.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py index e36ba8f7..e2c967de 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py @@ -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', )