from tests.importDrawing import ImportDrawing

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

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

    importDrawing.importDrawings()

    export.exportPDF(panelsPerPage=9)
    export.exportPDF(panelsPerPage=4)
    export.exportPDF(panelsPerPage=3)
    # export.exportPDF(panelsPerPage=1)
    export.exportQuickTime(timeout=100)
    #####################################################

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

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)