Example #1
0
    def failed(self, comment, critical=False):
        self.failures.append(comment)
        # pythonHelper.failStep(comment)

        log('ERROR: %s' % comment, 'error')
        log('TestInfo: Now %s failures in current test.' % len(self.failures))
        if critical:
            log('FATAL ERROR: Something went horribly wrong, it makes no sense to go any further.', 'error')
            sikuliUtils.cleanup(self, True)
            sys.exit(1)
Example #2
0
from utils import sikuliUtils
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
# Import additional test modules here (e.g. from tests.fromMaya import FromMaya)
from tests.importDrawing import ImportDrawing
from tests.fromEditorial import FromEditorial

try:
    # Create new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Create test objects here (e.g. fromMaya = FromMaya(testInfo))
    importDrawing = ImportDrawing(testInfo)
    fromEditorial = FromEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    importDrawing.importPanels2('jpeg', 10)
    fromEditorial.publishToFlix2('Back from Avid.', 'fromAvid_2', toShotgun=False, toEditorial=False, asStills=False)
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('fromAvid: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
Example #3
0
def cleanup(testInfo, deleteSeq=True):

    log('Use sikuliUtils\'s cleanup method instead.', 'error')

    sikuliUtils.cleanup(testInfo, deleteSeq)