I am new to both Django and unit testing, but since I start the project after enough time playing with the framework, I decided to give unit testing.
My enthusiasm aside, I pretty much lost how to plan the evolving process. I did a little github search for Django projects that use unit testing, and I came across this . I see that there are only tests in the tagging application, and it looks good, but I have no idea how to break it. Why is the models.py file in / tagging / tests / applications? Model classes there have nothing to do with /tagging/models.py applications ...
Any ideas on how to figure this out or find a good example of how to implement unit testing in a django environment?
Also, I read in the docs that Django introduced unittest2 in 1.3, so that “Django 1.1 Testing And Debugging - Karen M. Tracey” would be a useful read, or do you think this might cause some confusion?
In any case, I appreciate any input in advance.
source
share