Can a Factory Boy automatically generate Django model field values, such as Model Mommy?

Using Model Mommy , you do not need to set all the model fields that you use, the Mommy model will automatically set them for you.

but in Factory Boy , if you want to use any field in the test, you must explicitly set the value for them in the ModelFactory Class.

My question is: can Factory Boy automatically generate model field values ​​like Model Mommy?

+4
source share
1 answer

, Factory , , Boy Factory.

.

+4

Source: https://habr.com/ru/post/1629836/


All Articles