We need a simple way to simulate a login in test code

Bug #104 reported by Brad Bollenbach
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Steve Alexander

Bug Description

I've got an email address, a password, and a doctest to finish really quickly. I hoped to find a function somewhere (or some kind of utility, or whatever's appropriate for this), where I can just go:

    login(email, password)

and a true login is simulated in my tests (i.e. fires off the correct events, raises an exception if the credentials are invalid, etc.) Instead, all I found were a dozen or more lines of somewhat hard-to-follow code in launchbag.txt that seem to roughly achieve the end results I was hoping for.

A login function like the above would Make Life Easier for people writing test code that involves logging in. Long live laziness!

Brad Bollenbach (bradb)
Changed in launchpad:
assignee: nobody → stevea
Steve Alexander (stevea)
Changed in launchpad:
status: New → Fixed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.