Merge lp:~henninge/launchpad/devel-productseries-views-tests into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Jeroen T. Vermeulen on 2010-10-27 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11810 |
| Proposed branch: | lp:~henninge/launchpad/devel-productseries-views-tests |
| Merge into: | lp:launchpad |
| Diff against target: |
386 lines (+175/-120) 2 files modified
lib/lp/testing/factory.py (+26/-9) lib/lp/translations/browser/tests/test_productserieslanguage_views.py (+149/-111) |
| To merge this branch: | bzr merge lp:~henninge/launchpad/devel-productseries-views-tests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jeroen T. Vermeulen (community) | 2010-10-27 | Approve on 2010-10-27 | |
|
Review via email:
|
|||
Commit Message
Improved tests for translations.
Description of the Change
In preparation for fixing bug 638920 I looked for a place for my tests. This will be in test_productser
I fixed the following things:
- Broke tests down into smaller methods.
- The view is now created only after the context has been fully setUp. It's not good to rely on properties not being cached.
- Do not depend on sample data (Languages).
No lint. No qa. A full test run will show if I broke the factory.
bin/test -vvcm lp.translations

Much better. Thanks for the cleanup!