On Nov 28, 2009, at 4:54 PM, Jonathan Lundell wrote: > I've implemented a doctest for routes.py. The idea is to modify the doctest > as required to verify that your routes.py is doing what you expect. Massimo > has the patch, but in the meantime (he's busy) feedback would be useful. Post > it here, or send me a note. > > You'll need to replace gluon/rewrite.py and add the new doctest code to the > end of routes.py. These are based on the current svn tree.
One more thing: needless to say, we're talking about incoming URLs as seen by web2py, so any rewriting that happens externally won't be reflected here. > > http://lobitos.net/web2py-patches/gluon/rewrite.py > http://lobitos.net/web2py-patches/routes.doctest.py > > (route.doctest.py is routes.example.py with the new doctest code appended) > > You'll need to edit the doctest section to reflect your own routes (feel free > to add new tests if you need to), and then run the test thus: > > $ python routes.py > > If the tests succeed, you'll see no output. If not, it'll tell you what you > got vs what it expected. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.