2011/6/11 [email protected] <[email protected]> > Show an example of how you use py.test to perform unit tests on the model > layer and controller. > > _____________________________________________ > *Gilson Filho* > *Web Developer > http://gilsondev.com* > > I have nothing concrete yet. I am just thinking about what might be the best strategy.
I don't know what I will do with the models. What one way would be a controller made to return the globals. Do I need to test the models? It may be seen as configuration files. The other thing I plan to do is put the application logic in the "modules" directory. This way, I can test the business logic without web2py and I reuse the logic in other apps. -- A+ ------------- Pierre My blog and profile (http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com> YouTube page (http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib> Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>

