Hi Andrew,

just yesterday I solved the same problem you had with mechanize. Titus
wrote wsgi_intercept (http://darcs.idyll.org/~t/projects/
wsgi_intercept/README.html). He gave me some advice on how to setup
wsgi interception with mechanize as the old version of wsgi_intercept
doesn't work with current mechanize. I'm now using the
wsgi_interception stuff from the current twill egg.

I'm planning to write a short wiki entry how to do the setup. My code
is in a very raw/hacked state and I might need some free afternoons to
find a clean solution to post. I will later try playing with
wsgi_intercepted twill to find out which one works better for me:
twill or mechanize.

See also http://ivory.idyll.org/articles/twill-and-wsgi_intercept.html
if you haven't already.

Bastian

On Mar 28, 9:47 am, "Andrew Dalke" <[EMAIL PROTECTED]> wrote:
> On Mar 28, 8:59 am, "Andrew Dalke" <[EMAIL PROTECTED]> wrote:
>
> > I've been working on understanding how to do testing of TG apps.
> > The TG book mentions mechanize.
>
> In passing it mentions twill, and I've seen Titus' blogs on that
> package.
>
> I looked at twill just now.  It supports calling a server through
> wsgi,
> which seems better than my hacked-up adapter.
>
> Is that how people usually use twill to talk to a TG app for doing
> unit tests?
>
>         Andrew
>         dalke @ dalke scientific . com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to