Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import factory
  2.  
  3. from applications.people.models import Person
  4.  
  5.  
  6. class PersonFactory(factory.DjangoModelFactory):
  7. name = factory.Sequence(lambda n: 'John Doe{0}'.format(n))
  8. age = 25
  9.  
  10. class Meta:
  11. model = Person
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement