← Back to team overview

launchpad-dev team mailing list archive

Re: Login helper love!

 

On Tue, 20 Jul 2010 11:36:51 +0200
Jonathan Lange <jml@xxxxxxxxxxxxx> wrote:

> Are you tired of thinking?
> 
> Do you just want to write tests?
> 
> There are now branch new login helpers to help you not think and write
> tests at the same time.
> 
> with celebrity_logged_in('admin'):
>     ubuntu.name = 'jonobuntu'
> 
> or
> 
> @with_celebrity_logged_in('vcs_imports')
> def change_the_time():
>     pass

Also, keep in mind that we have lp.testing.BrowserTestCase that we'd
like to grow more abilities and a better API.  The code team created
this because we were tired of writing page tests.  I'm hoping that
BrowserTestCase can replace this entirely.

Cheers,
Paul



References