# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
from unittest import TestCase
import buildconfig import mozunit
from mozbuild.artifacts import ArtifactJob, ThunderbirdMixin
class FakeArtifactJob(ArtifactJob):
package_re = r""
class TestArtifactJob(TestCase): def _assert_candidate_trees(self, version_display, expected_trees):
buildconfig.substs["MOZ_APP_VERSION_DISPLAY"] = version_display
buildconfig.substs["MOZ_APP_VERSION_DISPLAY"] = "91.3.0.esr"
self.assertEqual(job.candidate_trees, expected_trees) # Because the property is cached, changing the # `MOZ_APP_VERSION_DISPLAY` won't have any impact.
buildconfig.substs["MOZ_APP_VERSION_DISPLAY"] = ""
self.assertEqual(job.candidate_trees, expected_trees)
class FakeThunderbirdJob(ThunderbirdMixin, FakeArtifactJob): pass
buildconfig.substs["MOZ_APP_VERSION_DISPLAY"] = "91.3.0.esr"
self.assertEqual(job.candidate_trees, expected_trees) # Because the property is cached, changing the # `MOZ_APP_VERSION_DISPLAY` won't have any impact.
buildconfig.substs["MOZ_APP_VERSION_DISPLAY"] = ""
self.assertEqual(job.candidate_trees, expected_trees)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.