Esempio n. 1
0
 def test_main_dir_files_existence(self):
     rep = Repackage()
     xpi_path = os.path.join(
         self.xpi_file_prefix, 'infocon10sdk11icons.xpi')
     rep.download(xpi_path)
     response = rep.rebuild(self.sdk_source_dir, self.hashtag)
     assert not response[1]
     with open(os.path.join(settings.XPI_TARGETDIR,
                            "%s.xpi" % self.hashtag)) as xpi_file:
         xpi = zipfile.ZipFile(xpi_file)
         filenames = xpi.namelist()
         xpi.close()
     assert 'icon.png' in filenames
     assert 'icon64.png' in filenames
     assert 'icon16.png' in filenames
Esempio n. 2
0
 def test_main_dir_files_existence(self):
     rep = Repackage()
     xpi_path = os.path.join(
         self.xpi_file_prefix, 'infocon10sdk11icons.xpi')
     rep.download(xpi_path)
     response = rep.rebuild(self.sdk_source_dir, self.hashtag)
     assert not response[1]
     with open(os.path.join(settings.XPI_TARGETDIR,
                            "%s.xpi" % self.hashtag)) as xpi_file:
         xpi = zipfile.ZipFile(xpi_file)
         filenames = xpi.namelist()
         xpi.close()
     assert 'icon.png' in filenames
     assert 'icon64.png' in filenames
     assert 'icon16.png' in filenames
Esempio n. 3
0
 def test_repackage(self):
     for sample in self.sample_addons:
         rep = Repackage()
         rep.download(os.path.join(self.xpi_file_prefix, sample))
         response = rep.rebuild(self.sdk_source_dir, self.hashtag)
         assert not response[1]
Esempio n. 4
0
 def test_repackage(self):
     for sample in self.sample_addons:
         rep = Repackage()
         rep.download(os.path.join(self.xpi_file_prefix, sample))
         response = rep.rebuild(self.sdk_source_dir, self.hashtag)
         assert not response[1]