Merge lp:~ivo-kracht/launchpad/bug-728129 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-07-05 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15566 |
| Proposed branch: | lp:~ivo-kracht/launchpad/bug-728129 |
| Merge into: | lp:launchpad |
| Diff against target: |
162 lines (+62/-1) 3 files modified
lib/lp/services/database/decoratedresultset.py (+8/-0) lib/lp/services/database/tests/decoratedresultset.txt (+18/-1) lib/lp/services/database/tests/test_decoratedresultset.py (+36/-0) |
| To merge this branch: | bzr merge lp:~ivo-kracht/launchpad/bug-728129 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-07-05 | Approve on 2012-07-05 | |
|
Review via email:
|
|||
Description of the Change
I added the pre_iter_hook to the methods (first(), last(), any(), one()) as well as adding a new test file to make the original test work properly. Finally I adjusted the original test to fit the new conditions and added a test for the case that a method returns None.
Pre-imp call with adeuring
test:
./bin/test services -vvt decoratedresultset
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
1: narrative uses a moin header.
36: narrative uses a moin header.
60: narrative uses a moin header.
78: narrative uses a moin header.
86: narrative uses a moin header.
96: narrative uses a moin header.
113: narrative uses a moin header.
122: narrative uses a moin header.
137: narrative uses a moin header.
149: narrative uses a moin header.
156: narrative uses a moin header.
173: narrative uses a moin header.
Since it is nearly end of the work day i didn't have time to fix these errors
| Abel Deuring (adeuring) wrote : | # |
On 05.07.2012 19:41, j.c.sackett wrote:
> Review: Needs Information
>
> Thanks, Ivo. This looks good.
>
> It looks like you've copy pasted test_decoratedr
>
> That said, I'm not sure that file is even needed--I gather from reading it it's meant to gather the doctest you modified, but that test is already gathered and run without it. Can you try deleting it and making sure your tests are run?
>
[playing the "proxy" for Ivo:]
right, the file was copied, and the comments need to be changed. But the
file itself is necessary: Without it, the doctest is simply not
executed. (Or do we have other ways to let the doctest really run?)
Ivo is currently "recovering" from his internship and back in college
tomorrow, so I'll "seize" his branch and fix the comments.
Abel
| j.c.sackett (jcsackett) wrote : | # |
I'll mark this as approved as the other resubmitted branch is now Approved as well. We'll have to manually mark this as Merged, I suspect, when the other lands.

Thanks, Ivo. This looks good.
It looks like you've copy pasted test_decoratedr esultset from another file; the headings are all wrong (it's talking about CVEs, buglinktarget, &c).
That said, I'm not sure that file is even needed--I gather from reading it it's meant to gather the doctest you modified, but that test is already gathered and run without it. Can you try deleting it and making sure your tests are run?