Merge lp:~bac/launchpad/bug-569101 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~bac/launchpad/bug-569101 |
Merge into: | lp:launchpad |
Diff against target: |
50 lines (+26/-1) 2 files modified
lib/canonical/launchpad/pagetests/webservice/launchpadlib.txt (+21/-1) lib/canonical/testing/layers.py (+5/-0) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-569101 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | Approve | ||
Review via email: mp+24034@code.launchpad.net |
Commit message
Uppercase the request method to fix a bug using launchpadlib in the test environment.
Description of the change
= Summary =
Using lplib in the test environment is broken for many calls as the
REQUEST_METHOD is sent as 'get' but expected as GET.
== Proposed fix ==
Uppercase the method in the testing layer before sending it on.
== Pre-implementation notes ==
Fix suggested by Leonard.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt webservice/
The test that exercises the new piece is the anonymous search. It is a
bit contrived but I wanted something that would be around for regression
testing but would also add some explanatory comment. The risk is a
developer in the future will think it is dumb and will remove it.
== Demo and Q/A ==
N/A
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/canonical
lib/canonical
== Pyflakes Doctest notices ==
lib/canonical/
11: undefined name 'launchpadlib_for'
== Pyflakes notices ==
lib/canonical/
508: redefinition of unused 'pidfile' from line 95
Thanks for providing this fix. At least some good will come from your trial with delete.