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 t
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]':
> r