Merge lp:~sinzui/launchpad/stop-shouting-0 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11285 |
Proposed branch: | lp:~sinzui/launchpad/stop-shouting-0 |
Merge into: | lp:launchpad |
Diff against target: |
517 lines (+84/-95) 10 files modified
lib/canonical/launchpad/doc/tales.txt (+5/-4) lib/lp/registry/browser/tests/milestone-views.txt (+2/-5) lib/lp/registry/browser/tests/product-files-views.txt (+4/-2) lib/lp/registry/browser/tests/productseries-views.txt (+6/-12) lib/lp/registry/browser/tests/test_breadcrumbs.py (+2/-0) lib/lp/registry/configure.zcml (+2/-0) lib/lp/registry/tests/test_distribution.py (+3/-9) lib/lp/registry/tests/test_distroseries.py (+16/-24) lib/lp/registry/tests/test_sourcepackage.py (+7/-10) lib/lp/testing/factory.py (+37/-29) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/stop-shouting-0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+31423@code.launchpad.net |
Description of the change
This is my branch to stop the shouting about naked objects in tests.
lp:~sinzui/launchpad/stop-shouting-0
Diff size: 290
Test command: ./bin/test -vv \
-t registry.
-t milestone-views -t productseries-views
Pre-
Target release: 10.08
Stop the shouting about naked objects in tests
-------
I cannot work because I keep seeing annoying messages. This branch address
the ones that affect my feature branch.
ADDENDUM: There was a real error in a test that would have been caught if
the test has not removed the proxy. I will explain below.
Rules
-----
* Return a proxied object from the factory.
* Do not unwrap objects, log in to make the factory hack the attribute
for the test.
QA
--
None, this is a test runner.
Lint
----
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Test
----
* lib/lp/
* Login as the project owner to set the driver.
* lib/lp/
* Use a better factory method to get a product series
* Wrap the long line.
* Print the title of the enum ()
* Change the factory to hack the non-writable ProductSeries.
* lib/lp/
* Login as the distro or project owner to set the object field.
* NOTE: product.bugtracker was misspelled in the first test!
The prioritised listing is incrementing the score for *missing*
package to have a lower score...it is missing less information.
This test was always wrong.
* lib/lp/
* Login as project owner to set the status.
Implementation
--------------
* lib/lp/
* Hush lint: remove unused or redundant imports, wrap long lines.
* Return proxied milestone, productseries,
looked up again??).
* DistributionSou
Thanks for doing this work Curtis. Hopefully the other areas of LP will do the same soon.