import os
import nose
import shutil
from .. import create_project_folder
from .. import create_local_git_repo
from repster.utKit import utKit

# SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE
moduleDirectory = os.path.dirname(__file__)
utKit = utKit(moduleDirectory)
log, dbConn, pathToInputDir, pathToOutputDir = utKit.setupModule()
utKit.tearDownModule()

# xnose-class-to-test-main-command-line-function-of-module


class test_create_local_git_repo():

    def test_create_local_git_repo_function(self):
        try:
            shutil.rmtree("%(pathToOutputDir)s/testProjectName" % globals())
        except:
            pass

        kwargs = {}
        kwargs["log"] = log
        kwargs["pathToHostDirectory"] = pathToOutputDir
        kwargs["projectName"] = "testProjectName"
        create_project_folder.create_project_folder(**kwargs)

        kwargs = {}
示例#2
0
import os
import nose
import shutil
from repster import clone_github_repo_wiki
from repster.utKit import utKit

# SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE
moduleDirectory = os.path.dirname(__file__)
utKit = utKit(moduleDirectory)
log, dbConn, pathToInputDir, pathToOutputDir = utKit.setupModule()
utKit.tearDownModule()

# xnose-class-to-test-main-command-line-function-of-module


class test_clone_github_repo_wiki():
    def test_clone_github_repo_wiki_function(self):
        kwargs = {}
        kwargs["log"] = log
        kwargs["projectName"] = "sandwich"
        kwargs["pathToHostDirectory"] = "/Users/Dave/Desktop"
        kwargs["branches"] = True
        kwargs["strapline"] = "nice seperate wiki mate"
        kwargs["wiki"] = "seperate"
        kwargs["pathToCredentials"] = "/Users/Dave/github_credentials.yaml"
        # xt-kwarg_key_and_value
        wiki = clone_github_repo_wiki(**kwargs)
        wiki.get()

        # x-print-testpage-for-pessto-marshall-web-object