summaryrefslogtreecommitdiff
path: root/test/git/test_base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-12-03 16:31:07 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-12-03 16:31:07 +0100
commitc05ef0e7543c2845fd431420509476537fefe2b0 (patch)
tree75393ae080690acd035108d698d3c5a467076ebb /test/git/test_base.py
parent1eae9d1532e037a4eb08aaee79ff3233d2737f31 (diff)
downloadgitpython-c05ef0e7543c2845fd431420509476537fefe2b0.tar.gz
repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories
Diffstat (limited to 'test/git/test_base.py')
-rw-r--r--test/git/test_base.py6
1 files changed, 3 insertions, 3 deletions
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'))