Merge lp:~cjwatson/launchpad/refactor-bugtask-tests into lp:launchpad
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 17599 |
Proposed branch: | lp:~cjwatson/launchpad/refactor-bugtask-tests |
Merge into: | lp:launchpad |
Diff against target: |
321 lines (+67/-108) 5 files modified
lib/lp/app/interfaces/launchpad.py (+3/-0) lib/lp/app/utilities/celebrities.py (+9/-0) lib/lp/bugs/browser/tests/test_bugtask.py (+43/-104) lib/lp/soyuz/browser/tests/test_archive_packages.py (+1/-3) lib/lp/testing/__init__.py (+11/-1) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/refactor-bugtask-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+263310@code.launchpad.net |
Commit message
Refactor several bugtask browser tests to use record_two_runs, improving test isolation.
Description of the change
Refactor several bugtask browser tests to use record_two_runs rather than similar inline code that didn't do as good a job of isolating tests.
I've improved record_two_runs in a couple of ways in the process to make it even more accurate and easy to use. It now clears celebrity descriptors as well, and it gains an optional login_method argument which is useful in browser tests (since setupBrowserForUser calls logout).
To post a comment you must log in.