From c05ef0e7543c2845fd431420509476537fefe2b0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 3 Dec 2009 16:31:07 +0100 Subject: repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories --- test/git/test_repo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/git/test_repo.py') diff --git a/test/git/test_repo.py b/test/git/test_repo.py index e94a45bd..0e913ff1 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -21,11 +21,11 @@ class TestRepo(TestBase): Repo("repos/foobar") def test_repo_creation_from_different_paths(self): - r_from_gitdir = Repo(self.rorepo.path) - assert r_from_gitdir.path == self.rorepo.path - assert r_from_gitdir.path.endswith('.git') - assert not self.rorepo.git.git_dir.endswith('.git') - assert r_from_gitdir.git.git_dir == self.rorepo.git.git_dir + r_from_gitdir = Repo(self.rorepo.git_dir) + assert r_from_gitdir.git_dir == self.rorepo.git_dir + assert r_from_gitdir.git_dir.endswith('.git') + assert not self.rorepo.git.working_dir.endswith('.git') + assert r_from_gitdir.git.working_dir == self.rorepo.git.working_dir def test_description(self): txt = "Test repository" @@ -225,7 +225,7 @@ class TestRepo(TestBase): assert_true( len( tlist ) < sum( len(t) for t in tlist ) ) # test for single-char bug def test_untracked_files(self): - base = self.rorepo.git.git_dir + base = self.rorepo.working_tree_dir files = ( join_path_native(base, "__test_myfile"), join_path_native(base, "__test_other_file") ) num_recently_untracked = 0 -- cgit v1.2.1