from django.test import TestCase
import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = 'imagerprofile.ImagerProfile'
        django_get_or_create = ('username',)

    username = 'John'

from django.test import TestCase
import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = 'imagerprofile.User'
        django_get_or_create = ('username',)

    username = factory.Sequence(lambda n: "Agent %03d" % n)

Change test UserFactory model to point to User
Change test UserFactory model to point to User

  from django.test import TestCase
  import factory
  
  
  class UserFactory(factory.django.DjangoModelFactory):
      class Meta:
-         model = 'imagerprofile.ImagerProfile'
+         model = 'imagerprofile.User'
          django_get_or_create = ('username',)
  
-     username = 'John'
+     username = factory.Sequence(lambda n: "Agent %03d" % n)
  
Change test UserFactory model to point to User
## Code Before:
from django.test import TestCase
import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = 'imagerprofile.ImagerProfile'
        django_get_or_create = ('username',)

    username = 'John'

## Instruction:
Change test UserFactory model to point to User
## Code After:
from django.test import TestCase
import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = 'imagerprofile.User'
        django_get_or_create = ('username',)

    username = factory.Sequence(lambda n: "Agent %03d" % n)
