Skip to content

Commit 27d10a6

Browse files
committed
Fixed all remaining db tests
1 parent 2929bf6 commit 27d10a6

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

gitdb/test/db/test_loose.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This module is part of GitDB and is released under
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55
from lib import *
6-
from gitdb.db import PureLooseObjectODB
6+
from gitdb.db.py import PureLooseObjectODB
77
from gitdb.exc import BadObject
88
from gitdb.util import bin_to_hex
99

gitdb/test/db/test_mem.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
# This module is part of GitDB and is released under
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55
from lib import *
6-
from gitdb.db import (
7-
MemoryDB,
6+
from gitdb.db.py import (
7+
PureMemoryDB,
88
PureLooseObjectODB
99
)
1010

11-
class TestMemoryDB(TestDBBase):
11+
class TestPureMemoryDB(TestDBBase):
1212

1313
@with_rw_directory
1414
def test_writing(self, path):
15-
mdb = MemoryDB()
15+
mdb = PureMemoryDB()
1616

1717
# write data
1818
self._assert_object_writing_simple(mdb)

gitdb/test/db/test_pack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This module is part of GitDB and is released under
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55
from lib import *
6-
from gitdb.db import PackedDB
6+
from gitdb.db.py import PurePackedODB
77
from gitdb.test.lib import fixture_path
88

99
from gitdb.exc import BadObject, AmbiguousObjectName
@@ -15,7 +15,7 @@ class TestPackDB(TestDBBase):
1515

1616
@with_packs_rw
1717
def test_writing(self, path):
18-
pdb = PackedDB(path)
18+
pdb = PurePackedODB(path)
1919

2020
# on demand, we init our pack cache
2121
num_packs = len(pdb.entities())

gitdb/test/db/test_ref.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This module is part of GitDB and is released under
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55
from lib import *
6-
from gitdb.db import ReferenceDB
6+
from gitdb.db.py import PureReferenceDB
77

88
from gitdb.util import (
99
NULL_BIN_SHA,
@@ -12,7 +12,7 @@
1212

1313
import os
1414

15-
class TestReferenceDB(TestDBBase):
15+
class TestPureReferenceDB(TestDBBase):
1616

1717
def make_alt_file(self, alt_path, alt_list):
1818
"""Create an alternates file which contains the given alternates.
@@ -27,7 +27,7 @@ def test_writing(self, path):
2727
NULL_BIN_SHA = '\0' * 20
2828

2929
alt_path = os.path.join(path, 'alternates')
30-
rdb = ReferenceDB(alt_path)
30+
rdb = PureReferenceDB(alt_path)
3131
assert len(rdb.databases()) == 0
3232
assert rdb.size() == 0
3333
assert len(list(rdb.sha_iter())) == 0

gitdb/test/performance/test_stream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55
"""Performance data streaming performance"""
66
from lib import TestBigRepoR
7-
from gitdb.db import *
7+
from gitdb.db.py import *
88
from gitdb.base import *
99
from gitdb.stream import *
1010
from gitdb.util import (

gitdb/test/test_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Module with examples from the tutorial section of the docs"""
66
from lib import *
77
from gitdb import IStream
8-
from gitdb.db import PureLooseObjectODB
8+
from gitdb.db.py import PureLooseObjectODB
99
from gitdb.util import pool
1010

1111
from cStringIO import StringIO

0 commit comments

Comments
 (0)