Example #1
0
def projectStartTest(CASE_NO):
    gitConnection = GitConnect()
    gitConnection.checkForUnsavedChanges()

    fbConnection = FogBugzConnect()

    #get the appropriate cases out of FogBugz
    (parent,test) = fbConnection.getCaseTuple(CASE_NO)
    if not fbConnection.isReadyForTest(parent):
        print "This doesn't look ready to be tested (resolved/implemented)... are you sure about this? (press Enter to continue)"
        raw_input()



    gitConnection.fetch()
    gitConnection.checkoutBranch(parent,None,fbConnection)

    fbConnection.startCase(test,enforceNoTestCases=False)
    gitHubConnection = GitHubConnect()
    gitHubConnection.openPullRequestByName("work-%d" % CASE_NO)