Merge lp:~henninge/launchpad/db-devel-688479-kill-ut-in-tests-1 into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Henning Eggers on 2010-12-10 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 10054 | ||||
| Proposed branch: | lp:~henninge/launchpad/db-devel-688479-kill-ut-in-tests-1 | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
453 lines (+61/-55) 14 files modified
lib/lp/translations/browser/tests/language-views.txt (+3/-3) lib/lp/translations/browser/tests/test_persontranslationview.py (+1/-1) lib/lp/translations/browser/tests/test_translationmessage_view.py (+4/-4) lib/lp/translations/doc/gettext-check-messages.txt (+3/-4) lib/lp/translations/doc/translationmessage-destroy.txt (+1/-1) lib/lp/translations/doc/translationmessage.txt (+2/-2) lib/lp/translations/stories/standalone/xx-person-activity.txt (+5/-3) lib/lp/translations/stories/standalone/xx-pofile-details.txt (+5/-5) lib/lp/translations/stories/standalone/xx-translations-to-complete.txt (+2/-2) lib/lp/translations/stories/standalone/xx-translations-to-review.txt (+1/-1) lib/lp/translations/tests/test_potmsgset.py (+22/-16) lib/lp/translations/tests/test_translatablemessage.py (+2/-2) lib/lp/translations/tests/test_translationmessage.py (+9/-9) lib/lp/translations/tests/test_translationsperson.py (+1/-2) |
||||
| To merge this branch: | bzr merge lp:~henninge/launchpad/db-devel-688479-kill-ut-in-tests-1 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2010-12-10 | Approve on 2010-12-10 |
|
Review via email:
|
|||
Commit Message
[r=adeuring]
Description of the Change
= Bug 688479, Part 1 =
This branch replaces all uses of makeTranslation
== Details ==
In most cases the new factory method can directly replace the old one. Sometimes parameters need to be renamed. In two cases the methods under test have not yet been converted to the new model so that the tests had to be disabled until that is fixed.
== Tests ==
Only tests were changed, so the branch can be verified by running those tests.
bin/test -vvcm lp.translations \
-t language-views.txt \
-t test_persontran
-t test_translatio
-t gettext-
-t translationmess
-t translationmess
-t xx-person-
-t xx-pofile-
-t xx-translations
-t xx-translations
-t test_potmsgset.py \
-t test_translatab
-t test_translatio
-t test_translatio
== Lint ==
I removed some lint.

(13:34:23) adeuring: henninge: overall, the changes look good. But the disabled tests conern me a bit: Couldn't you simply use the old factory method makeTranslation Message( ) unitl the new method can be properly used in these tests?
(13:34:33) adeuring: s/conern/concern/
(13:46:03) 18VABWLF0 hat den Raum verlassen (quit: Ping timeout: 240 seconds).
(13:52:37) henninge: adeuring: yes, I could. OTHOH that bug will be the next to fix after this bug and I want to remove the old factory method in the next branch for this bug.
(13:52:59) henninge: adeuring: sorry for being afk, btw.
(13:54:44) adeuring: henninge: well, you can fix the factory method first and then change the tests. I am perhaps a bit paranoid, but I remeber a somewhat weird bug in Zope 2 which looked like somebody made a short coffee break while working on a feature but never properly finished that feature aufter the coffee break ;)
(13:55:13) henninge: ;-)
(13:55:23) henninge: The factory method will not be fixed but removed.
(13:56:23) adeuring: henninge: right, what I meant is: I think you should still use the old mehtod until the new one works properly for the currently disabled tests
(13:56:54) henninge: adeuring: we keep running into these hen-egg problems with this branch. ;)
(13:57:18) henninge: In this case it's not the factory that needs to be fixed but the method under test is still referring to the old model.
(13:58:15) henninge: adeuring: but I can do that, if you insist ;-)
(13:58:16) henninge: np
(13:58:33) henninge: I'll have to keep the old factory around a little longer.
(13:58:46) adeuring: henninge: I would feel defeinetly better if all tests stay enabled ;)
(13:59:07) henninge: adeuring: It is important that you feel well!
(13:59:27) adeuring: henninge: ok, so, r=me