def test_schema_everything(self): compare( dict(type="git", name="config", path="/foo", git="svn", commit=False, push=True), GitRepo.schema(dict(type="git", name="config", path="/foo", git="svn", commit=False, push=True)), )
def test_schema_defaults(self): compare( dict(type="git", name="config", path="/foo", git="git", commit=True, push=False), GitRepo.schema(dict(type="git", path="/foo", name="config")), )
def test_default_repo_config(self): # can't test actions due to default path GitRepo(**GitRepo.schema(default_repo_config))
def make_git_repo(**params): params.update(type="git", name="test") return GitRepo(**GitRepo.schema(params))