Merge lp:~leonardr/launchpadlib/use-shorthand-uris-in-all-tests into lp:launchpadlib
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/launchpadlib/use-shorthand-uris-in-all-tests |
Merge into: | lp:launchpadlib |
Diff against target: |
217 lines (+26/-19) 5 files modified
src/launchpadlib/credentials.py (+4/-1) src/launchpadlib/docs/introduction.txt (+7/-8) src/launchpadlib/launchpad.py (+10/-5) src/launchpadlib/testing/helpers.py (+1/-5) src/launchpadlib/uris.py (+4/-0) |
To merge this branch: | bzr merge lp:~leonardr/launchpadlib/use-shorthand-uris-in-all-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster | Approve | ||
Review via email: mp+16298@code.launchpad.net |
To post a comment you must log in.
We had some untested code paths to do with shorthand URIs like 'edge'. This is because the Launchpad instance used for tests didn't have a shorthand URI, so we used the long-form URI everywhere. This masked several places where shorthand URIs, when passed in, were not being dereferenced.
This branch changes all our tests that use 'http:// api.launchpad. dev:8085/ beta/' or 'http:// launchpad. dev:8085/ ' to use the shorthand string 'dev_test' instead. This caused several tests to fail due to a lack of dereferencing code. The most important one is a bug I just introduced into Launchpad. login_with, which was breaking typical usage of popular launchpadlib scripts.