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')
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 написал:
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?
2016-04-30 10:11 GMT+02:00 Seti Volkylany <setivo...@gmail.com>:--I mean the factory.Faker('name', locale='en'), andI 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.
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 .
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/cf0a5eab-e93d-43c2-92e4-f6361cd964e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment