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