Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/de684cd59ed5359a1a7473895ef7049b to your computer and use it in GitHub Desktop.
Save brunomichetti/de684cd59ed5359a1a7473895ef7049b to your computer and use it in GitHub Desktop.
from factory import django, Faker
from myapp import models
class PersonFactory(factory.django.DjangoModelFactory):
class Meta:
model = models.Person
first_name = Faker('first_name')
last_name = Faker('last_name')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment