and put up the code on
http://corn.appspot.com/2008/11/Simulating-login-with-webtest
in case anyone is interested.
On Nov 12, 9:20 am, Sudhir <[EMAIL PROTECTED]> wrote:
> Well, I managed to figure it out myself :-/
>
> Just stub out users.get_current_user = lambada usr = '[EMAIL PROTECTED]':
> return usr
> before you run the tests. You can also extract it out into a method to
> make things easy.
>
> On Oct 21, 9:28 am, Sudhir <[EMAIL PROTECTED]> wrote:
>
> > Does anyone know how to simulate login using webtest? I've tried
> > doing
>
> > app.get('/_ah/login?action=Login&[EMAIL PROTECTED]')
>
> > but its doesn't register the user as logged in when using webtest.
>
> > Sudhir
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---