We need a simple way to simulate a login in test code
Bug #104 reported by
Brad Bollenbach
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!
Changed in launchpad: | |
assignee: | nobody → stevea |
Changed in launchpad: | |
status: | New → Fixed |
To post a comment you must log in.