tag:blogger.com,1999:blog-241672008816480648.post4634561055930432187..comments2023-10-16T14:13:47.185+01:00Comments on Fábio Santos's blog: Django-webtestfabiodanhttp://www.blogger.com/profile/06921108240169536348noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-241672008816480648.post-24213290850411546672013-08-16T10:29:42.085+01:002013-08-16T10:29:42.085+01:00It has been a bit since I used this library.
You ...It has been a bit since I used this library.<br /><br />You might have seen examples of a wsgi app on a web test doc page, because environ and start_response are arguments to the wsgi callable (see "simplest app" here: http://pythonweb.org/projects/webmodules/doc/0.5.3/html_multipage/lib/example-wsgiSimple.html).<br /><br />Basically this is because webtest will talk to your application via wsgi, which is conveniently the same interface your server will (hopefully) use to talk to it.<br /><br />If you are on django, django-webtest will take care of plumbing webtest to your app, so you will just have to install it, import it and use it.<br /><br />Otherwise, every web framework that I know of has an easy way to get the wsgi application callable, which you can pass to webtest so it can talk to your app.<br /><br />Hope this helps!fabiodanhttps://www.blogger.com/profile/06921108240169536348noreply@blogger.comtag:blogger.com,1999:blog-241672008816480648.post-40288641499691296112013-08-12T11:50:48.491+01:002013-08-12T11:50:48.491+01:00Hi, could you please point me to the basics of usi...Hi, could you please point me to the basics of using WebTest - eg. where in the project do my files need to be ? what should go in the 'environ' and 'start_response' params ? etc. <br />-AashAasheeshhttps://www.blogger.com/profile/15002747395114111013noreply@blogger.com