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_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/git/test_base.py') diff --git a/test/git/test_base.py b/test/git/test_base.py index ab46ded4..ec85c2a7 100644 --- a/test/git/test_base.py +++ b/test/git/test_base.py @@ -84,15 +84,15 @@ class TestBase(TestBase): @with_bare_rw_repo def test_with_bare_rw_repo(self, bare_rw_repo): assert bare_rw_repo.config_reader("repository").getboolean("core", "bare") - assert os.path.isfile(os.path.join(bare_rw_repo.path,'HEAD')) + assert os.path.isfile(os.path.join(bare_rw_repo.git_dir,'HEAD')) @with_rw_repo('0.1.6') def test_with_rw_repo(self, rw_repo): assert not rw_repo.config_reader("repository").getboolean("core", "bare") - assert os.path.isdir(os.path.join(rw_repo.git.git_dir,'lib')) + assert os.path.isdir(os.path.join(rw_repo.working_tree_dir,'lib')) @with_rw_and_rw_remote_repo('0.1.6') def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo): assert not rw_repo.config_reader("repository").getboolean("core", "bare") assert rw_remote_repo.config_reader("repository").getboolean("core", "bare") - assert os.path.isdir(os.path.join(rw_repo.git.git_dir,'lib')) + assert os.path.isdir(os.path.join(rw_repo.working_tree_dir,'lib')) -- cgit v1.2.3