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.

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.


Reply via email to