Model Bakery: Smart fixtures for better tests¶
Model Bakery offers you a smart way to create fixtures for testing in Django.
With a simple and powerful API you can create many objects with a single line of code.
Model Bakery is a rename of the legacy model_mommy’s project.
Contributing to Model Bakery¶
As an open source project, Model Bakery welcomes contributions of many forms. Examples of contributions include:
- Code Patches
- Documentation improvements
- Bug reports
model_bakery supports Django >= 1.11 and Python >= 3.5
Install it with
$ pip install model_bakery
- Prepare a virtual environment.
$ pip install virtualenvwrapper $ mkvirtualenv model_bakery
- Install the requirements.
$ pip install -r dev_requirements.txt
- Run the tests.
$ make test
Doubts? Loved it? Hated it? Suggestions?¶
Feel free to open an issue for support, development or ideas!
- Basic Usage
- How Model Bakery behaves?