Merge lp:~bac/launchpad/lplib-testing 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/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) | Approve | ||
Review via email: mp+24040@code.launchpad.net |
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
Here is the missing test: http:// pastebin. ubuntu. com/421231/