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')

    class Meta:
        model = models.User
        django_get_or_create = ('username', )

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.PostGenerationMethodCall('set_password', 'password')

    class Meta:
        model = 'users.User'
        django_get_or_create = ('username', )

Fix typo & import in UserFactory
Fix typo & import in UserFactory
- 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', )
  
Fix typo & import in UserFactory
## Code Before:
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')

    class Meta:
        model = models.User
        django_get_or_create = ('username', )

## Instruction:
Fix typo & import in UserFactory
## Code After:
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.PostGenerationMethodCall('set_password', 'password')

    class Meta:
        model = 'users.User'
        django_get_or_create = ('username', )
