Merge lp:~jtv/launchpad/translationtemplatescollection-test into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Данило Шеган on 2010-07-16 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11150 |
| Proposed branch: | lp:~jtv/launchpad/translationtemplatescollection-test |
| Merge into: | lp:launchpad |
| Diff against target: |
362 lines (+244/-22) 5 files modified
lib/lp/services/database/collection.py (+17/-3) lib/lp/services/database/tests/test_collection.py (+1/-3) lib/lp/services/doc/collection.txt (+8/-2) lib/lp/translations/model/potemplate.py (+11/-14) lib/lp/translations/tests/test_translationtemplatescollection.py (+207/-0) |
| To merge this branch: | bzr merge lp:~jtv/launchpad/translationtemplatescollection-test |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Данило Шеган (community) | Approve on 2010-07-16 | ||
| Launchpad code reviewers | code | 2010-07-16 | Pending |
|
Review via email:
|
|||
Commit Message
Tests & simplification for TranslationTemp
Description of the Change
= TranslationTemp
This branch provides intermediate testing for TranslationTemp
This also introduces another piece of convenience for Collection: a concrete collection class based on Collection selects, by default, just the class that it is a collection of. So calling TranslationTemp
There's also some drive-by lint cleanup. However I left some pre-existing ones in place because what "make lint" is complaining about looks to me an awful lot like our preferred syntax:
list_
for item in items
if effable(item)
]
Jeroen
| Jeroen T. Vermeulen (jtv) wrote : | # |
| Данило Шеган (danilo) wrote : | # |
1. Split test_restrictCu
2. I'd like to see more tests for "simple" conditions, i.e. negative tests: nothing returned, or that stuff in other contexts is not returned. For the second we probably don't care about it since it's tested in the base collection tests.
I mostly care about 1, and do 2 only if you agree.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Thanks. I split up test_restrictCu

Oops. I forgot to include the preceding branch as a requirement for this one, and the preceding one hasn't landed yet. (It's been reviewed and approved though).
Incremental diff compared to that branch: http:// paste.ubuntu. com/464611/