men = PersonFactory.create_batch(5, is_underage=False, is_male=True)
for m in men:
print(m.to_json())
{"title": "Dr", "first": "Charles", "last": "Davis", "email": "test-charles.davis-20221113_231706@hotmail.com", "date_of_birth": "2000-01-03"}
{"title": "Mr", "first": "Julian", "last": "Bartlett", "email": "test-julian.bartlett-20221113_231706@yahoo.com", "date_of_birth": "1940-05-12"}
{"title": "Dr", "first": "Michael", "last": "Lamb", "email": "test-michael.lamb-20221113_231706@outlook.com", "date_of_birth": "1942-10-23"}
{"title": "Mr", "first": "Gavin", "last": "Hunt", "email": "test-gavin.hunt-20221113_231706@gmail.com", "date_of_birth": "1925-12-16"}
{"title": "Mr", "first": "Gerard", "last": "Griffin", "email": "test-gerard.griffin-20221113_231706@yahoo.com", "date_of_birth": "1931-03-06"}
women = PersonFactory.create_batch(5, is_underage=False, is_male=False)
for w in women:
print(w.to_json())
"title": "Miss", "first": "Margaret", "last": "Cooper", "email": "test-margaret.cooper-20221113_231706@yahoo.com", "date_of_birth": "1972-02-12"}
{"title": "Mrs", "first": "Heather", "last": "Cook", "email": "test-heather.cook-20221113_231706@yahoo.co.uk", "date_of_birth": "1939-09-27"}
{"title": "Miss", "first": "Annette", "last": "Butcher", "email": "test-annette.butcher-20221113_231706@hotmail.co.uk", "date_of_birth": "1977-02-15"}
{"title": "Mrs", "first": "Chelsea", "last": "Smith", "email": "test-chelsea.smith-20221113_231706@hotmail.com", "date_of_birth": "1949-08-31"}
{"title": "Dr", "first": "Kirsty", "last": "Godfrey", "email": "test-kirsty.godfrey-20221113_231706@hotmail.com", "date_of_birth": "1998-01-08"}