Exemple #1
0
def testIssues():
    repoList = getRepos()

    print "PROJECT_PATH:%s" % PROJECT_PATH
    print os.path.join(PROJECT_PATH, '..', 'test_output', "testIssues.txt")

    f = open(os.path.join(PROJECT_PATH, '..', 'test_output', "testIssues.txt"), "w")
    for r in repoList:
        todoCount = len(r.Todos)

        if todoCount > 0:
            displayCount = min(5, todoCount)

            f.write(r.key()+"\n")
    
            f.write("%i TODO's Found.  Displaying first %i\n" % (todoCount, displayCount))
            f.write("--------------------------\n")
            for i in range(0, displayCount):
                todo = buildIssue(r.Todos[i], r)
                if 'title' in todo and 'body' in todo:
                    f.write("Title: %s\n\nBody:\n%s\n\n\n" % (todo['title'], todo['body']))
Exemple #2
0
def test_getRepos():
    print getRepos()