-
Notifications
You must be signed in to change notification settings - Fork 349
Description
Model factories can help us scaffold content quickly for development purposes.
Let's define a factory.py file in every app containing a models.py. The factory.py files will contain factories for the models in the same app. E.g.,
- project/categories/models.py - model definitions for categories app
- project/categories/factory.py - factory definitions for categories app
Task
- add
factory_boyto this project withpoetry add factory_boy --group dev - define the initial factory_boy factories