Comment 2 for bug 591618

Revision history for this message
Paul Hummer (rockstar) wrote :

I'm finally getting back to this branch (my mistake) and I can't reproduce this at all. Michael, can you still reproduce this, and if so, please tell me how. My test seems to indicate that there is no link here. This is what my test looks like:

    def test_result_formatter(self):
        """SourcePackageRecipe results should not have a link."""
        build = self.makeRecipeBuild()
        build.queueBuild(build)
        release = self.factory.makeSourcePackageRelease(
            source_package_recipe_build=None)
        release.source_package_recipe_build = build
        transaction.commit()
        build_url = canonical_url(build)
        release_url = canonical_url(release)
        expected = str('%s in %s %s' % (
            release.name,
            release.upload_distroseries.distribution.bugtargetname,
            release.version))
        logout()

        browser = self.getUserBrowser(build_url, user=self.chef)
        result = find_tag_by_id(browser.contents, 'build-result')
        self.assertEqual(
            result.renderContents(),
            expected)

It returns a result that has no link at all. Reproduction instructions would be of help here.