-
-
Save brunomichetti/de684cd59ed5359a1a7473895ef7049b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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