Пример #1
0
 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)),
     )
Пример #2
0
 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")),
     )
Пример #3
0
 def test_default_repo_config(self):
     # can't test actions due to default path
     GitRepo(**GitRepo.schema(default_repo_config))
Пример #4
0
def make_git_repo(**params):
    params.update(type="git", name="test")
    return GitRepo(**GitRepo.schema(params))