def test_repository_factory_throws_for_directory_without_repo(self):
     directory = mkdtemp('-caboose-rep-fails-correctly-test')
     try:
         repo = RepositoryFactory.get_repository(directory)
     finally:
         rmtree(directory)
Exemplo n.º 2
0
 def test_repository_factory_throws_for_directory_without_repo(self):
     directory = mkdtemp('-caboose-rep-fails-correctly-test')
     try:
         repo = RepositoryFactory.get_repository(directory)
     finally:
         rmtree(directory)
 def test_get_git_repo_from_factory_for_directory_with_git_repo(self):
     directory = mkdtemp('-caboose-rep-works-test')
     GitRepository(directory, init=True)
     repo = RepositoryFactory.get_repository(directory)
     eq_(GitRepository, type(repo))
     rmtree(directory)
Exemplo n.º 4
0
 def test_get_git_repo_from_factory_for_directory_with_git_repo(self):
     directory = mkdtemp('-caboose-rep-works-test')
     GitRepository(directory, init=True)
     repo = RepositoryFactory.get_repository(directory)
     eq_(GitRepository, type(repo))
     rmtree(directory)