File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 33# This module is part of GitDB and is released under
44# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55from lib import *
6- from gitdb .db import PureLooseObjectODB
6+ from gitdb .db . py import PureLooseObjectODB
77from gitdb .exc import BadObject
88from gitdb .util import bin_to_hex
99
Original file line number Diff line number Diff line change 33# This module is part of GitDB and is released under
44# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55from 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 )
Original file line number Diff line number Diff line change 33# This module is part of GitDB and is released under
44# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55from lib import *
6- from gitdb .db import PackedDB
6+ from gitdb .db . py import PurePackedODB
77from gitdb .test .lib import fixture_path
88
99from 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 ())
Original file line number Diff line number Diff line change 33# This module is part of GitDB and is released under
44# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55from lib import *
6- from gitdb .db import ReferenceDB
6+ from gitdb .db . py import PureReferenceDB
77
88from gitdb .util import (
99 NULL_BIN_SHA ,
1212
1313import 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
Original file line number Diff line number Diff line change 44# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55"""Performance data streaming performance"""
66from lib import TestBigRepoR
7- from gitdb .db import *
7+ from gitdb .db . py import *
88from gitdb .base import *
99from gitdb .stream import *
1010from gitdb .util import (
Original file line number Diff line number Diff line change 55"""Module with examples from the tutorial section of the docs"""
66from lib import *
77from gitdb import IStream
8- from gitdb .db import PureLooseObjectODB
8+ from gitdb .db . py import PureLooseObjectODB
99from gitdb .util import pool
1010
1111from cStringIO import StringIO
You can’t perform that action at this time.
0 commit comments