What is completed listing all formaters (fakers, providers) in FactoryBoy?

59 views
Skip to first unread message

Seti Volkylany

unread,
Apr 30, 2016, 4:11:49 AM4/30/16
to Django users

I mean the factory.Faker('name', locale='en'), and 

I found slug, name, first_name, last_name, time, date, url, but I am don`t found all list in Web and factoryboy`s documentation.

May anyone known?

Thanks.

Gergely Polonkai

unread,
Apr 30, 2016, 4:40:12 AM4/30/16
to Django users
Looking at FactoryBoy’s documentation, it doesn’t seem you can use these; for example, slug is never mentioned in the documentation. What exactly do you want to achieve? Are you sure it’s FactoryBoy you are looking for?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/787d683b-cb31-432e-ac34-a480d5d4fda2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Seti Volkylany

unread,
Apr 30, 2016, 7:33:08 AM4/30/16
to Django users

I will ask a question easier.

experimentally I found such worked providers of factoryboy:

factory.Faker('name', locale='en') - generate random name
factory.Faker('first_name', locale='en') - generate random first_name
factory.Faker('last_name', locale='en') - generate random last_name
factory.Faker('url', locale='en') - generate random URL
factory.Faker('slug', locale='en') - generate random slug
factory.Faker('date', locale='en') - generate random date
factory.Faker('time', locale='en') - generate random time
factory.Faker('text', locale='en') - generate random text

But not working factory.Faker('datetime', locale='en') and factory.Faker('color', locale='en')

In factoryboy’і docs silent about integrated formaters, and it was the reason to ask a question.


суббота, 30 апреля 2016 г., 11:40:12 UTC+3 пользователь Gergely Polonkai написал:
Reply all
Reply to author
Forward
0 new messages