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)
« Back to merge proposal
I start a full test.
Here is the diff for the tests.
=== modified file 'lib/lp/ translations/ browser/ tests/test_ distroserieslan guage_views. py' translations/ browser/ tests/test_ distroserieslan guage_views. py 2009-12-11 01:03:25 +0000 translations/ browser/ tests/test_ distroserieslan guage_views. py 2009-12-17 15:05:44 +0000 makeTranslation Group(
self. distroseries. distribution. owner, url=None)
self. distroseries. distribution. translationgrou p = group guageView( quest() ).initialize( )
self. assertEquals( self.view. translation_ group, group)
--- lib/lp/
+++ lib/lp/
@@ -48,6 +48,8 @@
group = self.factory.
+ self.view = DistroSeriesLan
+ self.dsl, LaunchpadTestRe
def test_translatio n_team( self): guageView( quest() ) quest() ).initialize( )
self. assertEquals( self.view. translation_ team, translator)
@@ -65,7 +67,7 @@
group, self.language, team)
# Recreate the view because we are using a cached property.
self.view = DistroSeriesLan
- self.dsl, LaunchpadTestRe
+ self.dsl, LaunchpadTestRe
def test_suite():
=== modified file 'lib/lp/ translations/ browser/ tests/test_ productseriesla nguage_ views.py' translations/ browser/ tests/test_ productseriesla nguage_ views.py 2009-12-11 16:09:04 +0000 translations/ browser/ tests/test_ productseriesla nguage_ views.py 2009-12-17 15:07:42 +0000 makeTranslation Group(
self. productseries. product. owner, url=None)
self. productseries. product. translationgrou p = group nguageView( quest() ).initialize( )
self. assertEquals( self.view. translation_ group, group)
--- lib/lp/
+++ lib/lp/
@@ -137,6 +137,8 @@
group = self.factory.
+ self.view = ProductSeriesLa
+ self.psl, LaunchpadTestRe
def test_translatio n_team( self): nguageView( quest() ) quest() ).initialize( )
self. assertEquals( self.view. translation_ team, translator)
@@ -154,7 +156,7 @@
group, self.language, team)
# Recreate the view because we are using a cached property.
self.view = ProductSeriesLa
- self.psl, LaunchpadTestRe
+ self.psl, LaunchpadTestRe
def test_suite():