def test_bump_version_in_package_json(self): with amo.tests.copy_file( 'apps/files/fixtures/files/new-format-0.0.1.xpi', self.file_.file_path): tasks.bump_version_number(self.file_) parsed = parse_xpi(self.file_.file_path) assert parsed['version'] == '0.0.1.1-signed'
def test_bump_version_in_alt_install_rdf(self): with amo.tests.copy_file('apps/files/fixtures/files/alt-rdf.xpi', self.file_.file_path): tasks.bump_version_number(self.file_) parsed = parse_xpi(self.file_.file_path) assert parsed['version'] == '2.1.106.1-signed'
def test_bump_version_in_install_rdf(self): with amo.tests.copy_file('apps/files/fixtures/files/jetpack.xpi', self.file1.file_path): tasks.bump_version_number(self.file1) parsed = parse_xpi(self.file1.file_path) assert parsed['version'] == '1.3.1'
def test_bump_version_in_install_rdf(self): with amo.tests.copy_file("apps/files/fixtures/files/jetpack.xpi", self.file_.file_path): tasks.bump_version_number(self.file_) parsed = parse_xpi(self.file_.file_path) assert parsed["version"] == "1.3.1-signed"