示例#1
0
 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'
示例#2
0
 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'
示例#3
0
 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'
示例#4
0
 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'
示例#5
0
 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'
示例#6
0
文件: tests.py 项目: Nolski/olympia
 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"