Merge lp:~bac/launchpad/lplib-testing into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Curtis Hovey on 2010-04-23 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~bac/launchpad/lplib-testing |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~bac/launchpad/bug-569101 |
| Diff against target: |
617 lines (+456/-30) 7 files modified
lib/canonical/launchpad/security.py (+5/-0) lib/canonical/launchpad/testing/systemdocs.py (+8/-3) lib/lp/registry/doc/launchpadlib/project-registry.txt.disabled (+374/-0) lib/lp/registry/stories/webservice/xx-project-registry.txt (+18/-0) lib/lp/registry/tests/test_doc.py (+9/-3) lib/lp/services/testing/__init__.py (+40/-23) lib/lp/testing/_webservice.py (+2/-1) |
| To merge this branch: | bzr merge lp:~bac/launchpad/lplib-testing |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | 2010-04-23 | Approve on 2010-04-23 | |
|
Review via email:
|
|||
Commit Message
Changes to support launchpadlib testing, allow milestones to be retrieved by anonymous lplib user.
Description of the Change
= Summary =
Attempts to convert a webservice test to a launchpadlib test discovered
many problems that are fixed in this jumbled up branch.
== Proposed fix ==
=== modified file 'lib/canonical/
* The only production bug of the lot. Allow milestones to be accessed
anonymously via launchpadlib.
=== modified file 'lib/canonical/
* Export the new launchpadlib helper methods to doctests instead of
just pagetests.
=== added file
'lib/lp/
* New launchpadlib test file. It is disabled because there are
outstanding issues with the test environment and the tests will not pass
as written. I need to file a bug for the issues and put an XXX into the
beginning of this file. The biggest issue is logged in users with
permission are not allowed to see non-public data or make changes.
=== modified file 'lib/lp/
* Refactor to expose the new method 'build_
to register a subset of all tests. This is used in the registry test
registration.
=== modified file 'lib/lp/
* Silly formatting fixes.
=== modified file 'lib/lp/
* Allow the discovery of tests in lp/registry/
== Pre-implementation notes ==
Chats with Curtis, Leonard, Gary and Francis.
== Implementation details ==
Nothing interesting.
== Tests ==
Hmm, none really at this time. The test that proves milestones are now
accessible is in the launchpadlib test.
I'll add a web service test to show that milestones are retrievable by
anonymous users.
== Demo and Q/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/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
== Pylint notices ==
lib/canonical/
6: [W0105] String statement has no effect
lib/lp/
31: [W0102, build_doctest_
60: [W0102, build_test_suite] Dangerous default value {} as argument
| Brad Crittenden (bac) wrote : | # |
| Curtis Hovey (sinzui) wrote : | # |
Thanks for salvaging your branch. The milestone fix and test harness enhancement is much appreciated.
I think you are missing punctuation:
# Add doctests using default setup/teardown
| Robert Collins (lifeless) wrote : | # |
I'm just curious, does this then glue lplib to the test instance of
launchpad ? Could this be adapted to let third party authors test
their code with lplib against a local launchpad [started up by the
test environment] ?

Here is the missing test: http:// pastebin. ubuntu. com/421231/