# Test: projectBrowserTests
#
#####################################################

import testInfo
import traceback
from utils import sikuliUtils
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
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, newVersion=False)
    # Construct test objects here (e.g. fromMaya = FromMaya(testInfo))
    importDrawing = ImportDrawing(testInfo)

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

    projectBrowser.createShow(aspectRatio="2.39", frameRate="29.97")
    # projectBrowser.loadSequence()
    # projectBrowser.createCleanVersion()
    # projectBrowser.loadShow()
    # projectBrowser.createBranch(branches=["branch1", "branch2"])
    # projectBrowser.saveToBranch("branch2")
    # projectBrowser.switchToBranch("main")
    # projectBrowser.loadShow()
示例#2
0
#####################################################

import testInfo
import traceback
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.fromSBP import FromSBP
from tests.toEditorial import ToEditorial

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))
    fromSbp = FromSBP(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

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

    fromSbp.sbpToFlix('qa_testv1')
    toEditorial.toAvid("Publishing SBP sequence to Avid.")
    fromSbp.sbpToFlix('qa_testv2')
    toEditorial.toAvid("Publishing SBP sequence v2 to Avid.")
    projectBrowser.createCleanVersion()
    fromSbp.sbpToFlix('budsBud')
    toEditorial.toAvid("Publishing budsBud sequence to Avid.")