launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #18181
[Merge] lp:~cjwatson/launchpad/testfix-ftparchive-release-contents into lp:launchpad
Colin Watson has proposed merging lp:~cjwatson/launchpad/testfix-ftparchive-release-contents into lp:launchpad.
Commit message:
Adjust test_publishdistro for recent findSuite changes.
Requested reviews:
Colin Watson (cjwatson)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/testfix-ftparchive-release-contents/+merge/253637
Adjust test_publishdistro for recent findSuite changes.
--
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== renamed file 'lib/lp/archiveuploader/tests/test_publishdistro.py' => 'lib/lp/archivepublisher/tests/test_publishdistro.py'
--- lib/lp/archiveuploader/tests/test_publishdistro.py 2014-08-09 19:45:00 +0000
+++ lib/lp/archivepublisher/tests/test_publishdistro.py 2015-03-20 08:12:32 +0000
@@ -559,7 +559,7 @@
series = self.factory.makeDistroSeries()
distro = series.distribution
self.assertEqual(
- (series.name, PackagePublishingPocket.RELEASE),
+ (series, PackagePublishingPocket.RELEASE),
self.makeScript(distro).findSuite(distro, series.name))
def test_findSuite_finds_other_pocket(self):
@@ -569,7 +569,7 @@
distro = series.distribution
script = self.makeScript(distro)
self.assertEqual(
- (series.name, PackagePublishingPocket.UPDATES),
+ (series, PackagePublishingPocket.UPDATES),
script.findSuite(distro, series.name + "-updates"))
def test_findSuite_raises_if_not_found(self):
References