diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 17:34:53 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 17:34:53 +0100 |
| commit | 7bde7b098b07291227fcbc4eb900ebf13c9191a2 (patch) | |
| tree | a368f0bc387f8ed7c987c7efd8e77094846e17f8 /gitdb/test/db/test_git.py | |
| parent | be294278a0087f21d565a1084fb220ff936ae0bd (diff) | |
| download | gitdb-7bde7b098b07291227fcbc4eb900ebf13c9191a2.tar.gz | |
Fixed up tests to use the GITDB_TEST_GIT_REPO_BASE at all times
I have verified that all tests are working, even without a parent
git repository, as long as the said environment variable is set.
Fixes #16
Diffstat (limited to 'gitdb/test/db/test_git.py')
| -rw-r--r-- | gitdb/test/db/test_git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitdb/test/db/test_git.py b/gitdb/test/db/test_git.py index f962067..f28ffb7 100644 --- a/gitdb/test/db/test_git.py +++ b/gitdb/test/db/test_git.py @@ -2,6 +2,7 @@ # # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php +import os from gitdb.test.db.lib import ( TestDBBase, fixture_path, @@ -16,7 +17,7 @@ from gitdb.util import hex_to_bin, bin_to_hex class TestGitDB(TestDBBase): def test_reading(self): - gdb = GitDB(fixture_path('../../../.git/objects')) + gdb = GitDB(os.path.join(self.gitrepopath, 'objects')) # we have packs and loose objects, alternates doesn't necessarily exist assert 1 < len(gdb.databases()) < 4 |
