factory_boy
factory_boy copied to clipboard
Override the DjangoModelFactory's create_batch to use create_bulk
Yes, this would be a great idea.
A pull request or implementation draft would be quite appreciated :)
mm, does create_batch not actually save to database right now? (new to factory_boy here)
@deeTEEcee It does but it creates the database rows one by one.
oh, i see... for some reason, it didn't work for me and i had to loop through the returned objects and call save on them.
After 8 years, 6 months, and 2 days, there's a PR to address this. It's still a work in progress, and I would appreciate feedback.