Open Ragnyll opened 8 years ago
Let's go with a python file that creates an object or several objects for each model, and throw that in a scripts
folder in the project root. From there, we can make a start.sh
script that starts the django test server and runs the python file to fill the database.
This is what the fixtures are for.
Can even make a unit test like functionality for checking the api.
See #25
@brandonphelps Can you make some more fixtures? At least 2 lists for each dummy user, and lots of items to populate those lists / items to create new lists
Since we aren't maintaining the database from our github repo then we should probably have some sort of script to make sure everyone has the same mock data.
This could probably be implemented as a python file that just has the django commands that stick everything in the database. We could have a text file (or json file or something) that has all the data that the file would access.
There might be an easier way of doing this that someone might know, but I'm just throwing this out there