diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-03 19:48:05 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-03 19:48:05 +0100 |
commit | 342a0276dbf11366ae91ce28dcceddc332c97eaf (patch) | |
tree | b3a078975579c85e4e1306777931e9f3f44f5c2d /git/test/test_repo.py | |
parent | 863a40e0d35f3ff3c3e4b5dc9ff1272e1b1783b1 (diff) | |
download | gitpython-342a0276dbf11366ae91ce28dcceddc332c97eaf.tar.gz |
Fixed all remaining non-performance tests
* travis configuration adjusted to hopefully work better than before
Performance traversal still fails when using git-python as standard repository.
It naturally wants a larger one. On travis these tests are skipped though.
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r-- | git/test/test_repo.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py index 2cef4081..328995a2 100644 --- a/git/test/test_repo.py +++ b/git/test/test_repo.py @@ -34,12 +34,13 @@ class TestRepo(TestBase): def test_new_should_raise_on_non_existant_path(self): Repo("repos/foobar") - def test_repo_creation_from_different_paths(self): - r_from_gitdir = Repo(self.rorepo.git_dir) - assert r_from_gitdir.git_dir == self.rorepo.git_dir + @with_rw_repo('0.3.2.1') + def test_repo_creation_from_different_paths(self, rw_repo): + r_from_gitdir = Repo(rw_repo.git_dir) + assert r_from_gitdir.git_dir == rw_repo.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 + assert not rw_repo.git.working_dir.endswith('.git') + assert r_from_gitdir.git.working_dir == rw_repo.git.working_dir def test_description(self): txt = "Test repository" @@ -210,8 +211,7 @@ class TestRepo(TestBase): self.rorepo.alternates = cur_alternates def test_repr(self): - path = os.path.join(os.path.abspath(GIT_REPO), '.git') - assert_equal('<git.Repo "%s">' % path, repr(self.rorepo)) + assert repr(self.rorepo).startswith('<git.Repo ') def test_is_dirty_with_bare_repository(self): orig_value = self.rorepo._bare |