diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2011-05-06 15:03:14 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2011-05-06 15:03:14 +0200 |
| commit | acf5e6ea64a2f24117f1d419c208ed1c38c43690 (patch) | |
| tree | 75dedc18137297829e84f3a151130a589c3d844b /git/test/db | |
| parent | 56da804ff295a05a38dc2cc73755706ea756fc52 (diff) | |
| download | GitPython-acf5e6ea64a2f24117f1d419c208ed1c38c43690.tar.gz GitPython-acf5e6ea64a2f24117f1d419c208ed1c38c43690.zip | |
replaced all gitdb strings with git
Diffstat (limited to 'git/test/db')
| -rw-r--r-- | git/test/db/lib.py | 12 | ||||
| -rw-r--r-- | git/test/db/test_base.py | 2 | ||||
| -rw-r--r-- | git/test/db/test_git.py | 14 | ||||
| -rw-r--r-- | git/test/db/test_loose.py | 6 | ||||
| -rw-r--r-- | git/test/db/test_mem.py | 2 | ||||
| -rw-r--r-- | git/test/db/test_pack.py | 6 | ||||
| -rw-r--r-- | git/test/db/test_ref.py | 8 |
7 files changed, 25 insertions, 25 deletions
diff --git a/git/test/db/lib.py b/git/test/db/lib.py index 5f4f9c36..bd230eda 100644 --- a/git/test/db/lib.py +++ b/git/test/db/lib.py @@ -3,7 +3,7 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php """Base classes for object db testing""" -from gitdb.test.lib import ( +from git.test.lib import ( with_rw_directory, with_packs_rw, ZippedStoreShaWriter, @@ -11,20 +11,20 @@ from gitdb.test.lib import ( TestBase ) -from gitdb.stream import Sha1Writer +from git.stream import Sha1Writer # import database types we want to support # they will be set to None if the respective library could not be loaded -from gitdb.db.py import PureGitDB +from git.db.py import PureGitDB -from gitdb.base import ( +from git.base import ( IStream, OStream, OInfo ) -from gitdb.exc import BadObject -from gitdb.typ import str_blob_type +from git.exc import BadObject +from git.typ import str_blob_type from async import IteratorReader from cStringIO import StringIO diff --git a/git/test/db/test_base.py b/git/test/db/test_base.py index 0a381beb..1dbf6fe7 100644 --- a/git/test/db/test_base.py +++ b/git/test/db/test_base.py @@ -3,7 +3,7 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.db import RefSpec +from git.db import RefSpec class TestBase(TestDBBase): diff --git a/git/test/db/test_git.py b/git/test/db/test_git.py index 62f33bb1..46a2d24f 100644 --- a/git/test/db/test_git.py +++ b/git/test/db/test_git.py @@ -3,10 +3,10 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.exc import BadObject -from gitdb.db.py import PureGitODB -from gitdb.base import OStream, OInfo -from gitdb.util import hex_to_bin, bin_to_hex +from git.exc import BadObject +from git.db.py import PureGitODB +from git.base import OStream, OInfo +from git.util import hex_to_bin, bin_to_hex class TestGitDB(TestDBBase): @@ -17,9 +17,9 @@ class TestGitDB(TestDBBase): assert 1 < len(gdb.databases()) < 4 # access should be possible - gitdb_sha = hex_to_bin("5690fd0d3304f378754b23b098bd7cb5f4aa1976") - assert isinstance(gdb.info(gitdb_sha), OInfo) - assert isinstance(gdb.stream(gitdb_sha), OStream) + git_sha = hex_to_bin("5690fd0d3304f378754b23b098bd7cb5f4aa1976") + assert isinstance(gdb.info(git_sha), OInfo) + assert isinstance(gdb.stream(git_sha), OStream) assert gdb.size() > 200 sha_list = list(gdb.sha_iter()) assert len(sha_list) == gdb.size() diff --git a/git/test/db/test_loose.py b/git/test/db/test_loose.py index b1d33fd6..16c12d8e 100644 --- a/git/test/db/test_loose.py +++ b/git/test/db/test_loose.py @@ -3,9 +3,9 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.db.py import PureLooseObjectODB -from gitdb.exc import BadObject -from gitdb.util import bin_to_hex +from git.db.py import PureLooseObjectODB +from git.exc import BadObject +from git.util import bin_to_hex class TestLooseDB(TestDBBase): diff --git a/git/test/db/test_mem.py b/git/test/db/test_mem.py index 79005b50..ed14cc21 100644 --- a/git/test/db/test_mem.py +++ b/git/test/db/test_mem.py @@ -3,7 +3,7 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.db.py import ( +from git.db.py import ( PureMemoryDB, PureLooseObjectODB ) diff --git a/git/test/db/test_pack.py b/git/test/db/test_pack.py index 5456df41..4854c4e7 100644 --- a/git/test/db/test_pack.py +++ b/git/test/db/test_pack.py @@ -3,10 +3,10 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.db.py import PurePackedODB -from gitdb.test.lib import fixture_path +from git.db.py import PurePackedODB +from git.test.lib import fixture_path -from gitdb.exc import BadObject, AmbiguousObjectName +from git.exc import BadObject, AmbiguousObjectName import os import random diff --git a/git/test/db/test_ref.py b/git/test/db/test_ref.py index 330dab70..43fbb48f 100644 --- a/git/test/db/test_ref.py +++ b/git/test/db/test_ref.py @@ -3,9 +3,9 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from lib import * -from gitdb.db.py import PureReferenceDB +from git.db.py import PureReferenceDB -from gitdb.util import ( +from git.util import ( NULL_BIN_SHA, hex_to_bin ) @@ -44,8 +44,8 @@ class TestPureReferenceDB(TestDBBase): assert len(rdb.databases()) == 1 # we should now find a default revision of ours - gitdb_sha = hex_to_bin("5690fd0d3304f378754b23b098bd7cb5f4aa1976") - assert rdb.has_object(gitdb_sha) + git_sha = hex_to_bin("5690fd0d3304f378754b23b098bd7cb5f4aa1976") + assert rdb.has_object(git_sha) # remove valid self.make_alt_file(alt_path, ["just/one/invalid/path"]) |
