Example #1
0
    def __getAvailablePanels(self, ext):
        self.importPath = '%s/assets/%ss/' % (self.testInfo.testPath, ext)

        if not os.path.exists(self.importPath):
            log('importDrawings: Could not find an asset directory for %s; '
                'try with another file extension.' % ext, 'error')
            return 0
        else:
            return pyUtils.findFileNames(self.importPath, "*.%s" % ext)
Example #2
0
 def __checkAafImported(self):
     # Check the imported aafs have been copied to the flix/editorial/aaf/imported directory
     aafPath = '%s/aaf/imported' % self.toEditorial.testInfo.getEditorialDir()
     allAAFs = pyUtils.findFileNames(aafPath, '%s_*.aaf' % self.toEditorial.testInfo.sequence, False)
     newAAFs = len(allAAFs) - len(self.toEditorial.testInfo.avidImported)
     expectedNewAAFs = len(self.toEditorial.testInfo.avidPublished) - len(self.toEditorial.testInfo.avidImported)
     if newAAFs != expectedNewAAFs:
         self.toEditorial.testInfo.failed(
                 'importToAvidCheck: Expected %s new AAFs copied in the imported directory, found %s instead.' % (
                     expectedNewAAFs, newAAFs))
     else:
         log('- Found all %s new AAFs in the aaf imported directory.' % newAAFs)
     self.toEditorial.testInfo.avidImported = allAAFs
Example #3
0
 def __checkAafCopied(self):
     # Check the aafs are in the output path
     aafPath = '%s/%s_shotEdit_v%s.xml/' % (self.toEditorial.toAvidOutputDir, self.toEditorial.testInfo.sequence,
                                            self.toEditorial.testInfo.mainVersion)
     importedAAFs = pyUtils.findFileNames(aafPath, '%s_*.aaf' % self.toEditorial.testInfo.sequence, False)
     newImportedAAFs = len(importedAAFs)
     expectedImportedAAFs = len(self.toEditorial.testInfo.avidPublished) \
                            - len(self.toEditorial.testInfo.avidImported)
     if newImportedAAFs != expectedImportedAAFs:
         self.toEditorial.testInfo.failed(
                 'importToAvidCheck: Expected %s imported AAFs, found %s instead.' %
                 (expectedImportedAAFs, newImportedAAFs))
     else:
         log('- Found all %s imported AAFs.' % newImportedAAFs)
Example #4
0
 def __checkAafs(self):
     # Check all the AAFs are there
     allAAFs = pyUtils.findFileNames(self.toEditorial.aafDir,
                                     '%s_*.aaf' % self.toEditorial.testInfo.sequence, False)
     newAAFs = len(allAAFs) - len(self.toEditorial.testInfo.avidPublished)
     expectedNewAAFs = len(self.toEditorial.testInfo.getAvidNew())
     if newAAFs != expectedNewAAFs:
         self.toEditorial.testInfo.failed('toAvidCheck: Expected %s new AAFs, '
                                          'found %s instead.' % (expectedNewAAFs, newAAFs))
     else:
         log('- Found all %s new AAFs in the aaf directory.' % newAAFs)
     self.toEditorial.testInfo.avidPublished = allAAFs
     log('toAvidCheck: self.toEditorial.testInfo.avidPublished: %s' %
         self.toEditorial.testInfo.avidPublished, 'debug')