Merge lp:~bac/launchpad/bug-987499 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-05-03 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15199 |
| Proposed branch: | lp:~bac/launchpad/bug-987499 |
| Merge into: | lp:launchpad |
| Diff against target: |
53 lines (+9/-7) 2 files modified
lib/lp/app/browser/tests/test_stringformatter.py (+6/-7) lib/lp/testing/_login.py (+3/-0) |
| To merge this branch: | bzr merge lp:~bac/launchpad/bug-987499 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | Approve on 2012-05-03 | ||
| Gary Poster (community) | 2012-05-03 | Approve on 2012-05-03 | |
|
Review via email:
|
|||
Commit Message
Set LaunchBag.developer to False in lp.testing.
Description of the Change
= Summary =
LaunchBag.developer is being assumed to be unset when it can be left
on by previous tests. Clear it explicitly.
== Proposed fix ==
In the test, explicitly turn off the flag.
Alternatively, a tearDown method can be added to TestCase to ensure it
is always reset to False at the end of a run.
Similarly, a ILoggedOutEvent could be sent.
This flag is rarely used so I chose to not muddy the test
infrastructure to deal with it.
== Pre-implementation notes ==
None
== Implementation details ==
== Tests ==
Set tests.txt to:
lp.registry.
lp.app.
bin/test -vv --load-list tests.txt
== Demo and Q/A ==
None
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/

Cool, thank you.
I verified in IRC that the test_stringform atter change is just for test clarity: it does not change behavior. The behavior change is in _login.
Thank you!