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

59 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Seti Volkylany

belum dibaca,
30 Apr 2016, 04.11.4930/04/16
kepadaDjango 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

belum dibaca,
30 Apr 2016, 04.40.1230/04/16
kepadaDjango 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

belum dibaca,
30 Apr 2016, 07.33.0830/04/16
kepadaDjango 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 написал:
Balas ke semua
Balas ke penulis
Teruskan
0 pesan baru