def test_git_repoc_hash_wo_subdir(self): '''Test to get git repocache dir without subdir''' scm_object = Git(self.cli, self.tasks) scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git' repohash = scm_object.get_repocache_hash(None) self.assertEqual( repohash, 'c0f3245498ad916e9ee404acfd7aa59e29d53b7a063a8609735c1284c67b2161')
def test_git_repoc_hash_wo_subdir(self): '''Test to get git repocache dir without subdir''' scm_object = Git(self.cli, self.tasks) scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git' repohash = scm_object.get_repocache_hash(None) self.assertEqual( repohash, 'c0f3245498ad916e9ee404acfd7aa59e29d53b7a063a8609735c1284c67b2161')
def test_git_repoc_hash_w_subdir(self): ''' This test case proves that subdir is ignored in TarSCM.base.scm.get_repocache_hash ''' scm_object = Git(self.cli, self.tasks) scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git' repohash = scm_object.get_repocache_hash('subdir') self.assertEqual( repohash, 'c0f3245498ad916e9ee404acfd7aa59e29d53b7a063a8609735c1284c67b2161')
def test_git_repoc_hash_w_subdir(self): ''' This test case proves that subdir is ignored in TarSCM.base.scm.get_repocache_hash ''' scm_object = Git(self.cli, self.tasks) scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git' repohash = scm_object.get_repocache_hash('subdir') self.assertEqual( repohash, 'c0f3245498ad916e9ee404acfd7aa59e29d53b7a063a8609735c1284c67b2161')