Factory Boy
2025

How to fix factory_boy post-generation deprecation warnings
We use factory_boy for
bootstrapping test data on many Python and Django projects at Caktus.
Recently, we encountered a deprecation warning on an older project that
had been using factory_boy
for some time:
2013

Factory Boy as an Alternative to Django Testing Fixtures
Mark Lavin
When testing a Django application you often need to populate the test
database with some sample data. The standard Django TestCase
has
support for fixture loading but there are a number of problems with
using fixtures: