def test_unknown(self): repo = Repository( url='http://example.com/git-repo', backend=RepositoryBackend.unknown, ) result = repo.get_vcs() assert result is None
def test_git(self): repo = Repository( url='http://example.com/git-repo', backend=RepositoryBackend.git, ) result = repo.get_vcs() assert type(result) == GitVcs
def test_hg(self): repo = Repository( url='http://example.com/git-repo', backend=RepositoryBackend.hg, ) result = repo.get_vcs() assert type(result) == MercurialVcs