activist
activist copied to clipboard
Fixtures / Factories
Terms
- [X] I have searched open and closed feature requests
- [X] I agree to follow activist's Code of Conduct
Description
We use factory_boy to create fixtures and test data. I've set up a custom management command to create random users: python manage.py populate_db --users=100.
Our plan is to extend this command to include organizations, events, and more.
TODOs:
Add organizations Add events ... As we add new data types, we should also validate and improve the corresponding factories.
You can find the factories in the ../factories.py files, which should accurately reflect the database models.
Note: This issue is dependent on PR #933.
Contribution
I am happy to help :smile