Code review comment for lp:~adiroiban/launchpad/bug-427319

Revision history for this message
Adi Roiban (adiroiban) wrote :

I start a full test.

Here is the diff for the tests.

=== modified file 'lib/lp/translations/browser/tests/test_distroserieslanguage_views.py'
--- lib/lp/translations/browser/tests/test_distroserieslanguage_views.py 2009-12-11 01:03:25 +0000
+++ lib/lp/translations/browser/tests/test_distroserieslanguage_views.py 2009-12-17 15:05:44 +0000
@@ -48,6 +48,8 @@
         group = self.factory.makeTranslationGroup(
             self.distroseries.distribution.owner, url=None)
         self.distroseries.distribution.translationgroup = group
+ self.view = DistroSeriesLanguageView(
+ self.dsl, LaunchpadTestRequest()).initialize()
         self.assertEquals(self.view.translation_group, group)

     def test_translation_team(self):
@@ -65,7 +67,7 @@
             group, self.language, team)
         # Recreate the view because we are using a cached property.
         self.view = DistroSeriesLanguageView(
- self.dsl, LaunchpadTestRequest())
+ self.dsl, LaunchpadTestRequest()).initialize()
         self.assertEquals(self.view.translation_team, translator)

 def test_suite():

=== modified file 'lib/lp/translations/browser/tests/test_productserieslanguage_views.py'
--- lib/lp/translations/browser/tests/test_productserieslanguage_views.py 2009-12-11 16:09:04 +0000
+++ lib/lp/translations/browser/tests/test_productserieslanguage_views.py 2009-12-17 15:07:42 +0000
@@ -137,6 +137,8 @@
         group = self.factory.makeTranslationGroup(
             self.productseries.product.owner, url=None)
         self.productseries.product.translationgroup = group
+ self.view = ProductSeriesLanguageView(
+ self.psl, LaunchpadTestRequest()).initialize()
         self.assertEquals(self.view.translation_group, group)

     def test_translation_team(self):
@@ -154,7 +156,7 @@
             group, self.language, team)
         # Recreate the view because we are using a cached property.
         self.view = ProductSeriesLanguageView(
- self.psl, LaunchpadTestRequest())
+ self.psl, LaunchpadTestRequest()).initialize()
         self.assertEquals(self.view.translation_team, translator)

 def test_suite():

« Back to merge proposal