File tree 6 files changed +12
-7
lines changed
Filter options
6 files changed +12
-7
lines changed
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Both have two sets of methods, one of which allows interacting with single objec
37
37
Acquiring information about an object from a database is easy if you have a SHA1 to refer to the object::
38
38
39
39
40
- ldb = LooseObjectDB(fixture_path("../../.git/objects"))
40
+ ldb = LooseObjectDB(fixture_path("../../../. git/objects"))
41
41
42
42
for sha1 in ldb.sha_iter():
43
43
oinfo = ldb.info(sha1)
Original file line number Diff line number Diff line change 6
6
#{ Initialization
7
7
def _init_externals ():
8
8
"""Initialize external projects by putting them into the path"""
9
- sys .path .append (os .path .join (os .path .dirname (__file__ ), 'ext' ))
9
+ sys .path .append (os .path .join (os .path .dirname (__file__ ), 'ext' , 'async' ))
10
+
11
+ try :
12
+ import async
13
+ except ImportError :
14
+ raise ImportError ("'async' could not be imported, assure it is located in your PYTHONPATH" )
15
+ #END verify import
10
16
11
17
#} END initialization
12
18
Original file line number Diff line number Diff line change 7
7
class TestGitDB (TestDBBase ):
8
8
9
9
def test_reading (self ):
10
- gdb = GitDB (fixture_path ('../../.git/objects' ))
10
+ gdb = GitDB (fixture_path ('../../../. git/objects' ))
11
11
12
12
# we have packs and loose objects, alternates doesn't necessarily exist
13
13
assert 1 < len (gdb .databases ()) < 4
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ def test_writing(self, path):
15
15
pdb = PackedDB (path )
16
16
17
17
# on demand, we init our pack cache
18
- num_packs = 2
19
- assert len (pdb .entities ()) == num_packs
18
+ num_packs = len (pdb .entities ())
20
19
assert pdb ._st_mtime != 0
21
20
22
21
# test pack directory changed:
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def test_writing(self, path):
34
34
35
35
# setup alternate file
36
36
# add two, one is invalid
37
- own_repo_path = fixture_path ('../../.git/objects' ) # use own repo
37
+ own_repo_path = fixture_path ('../../../. git/objects' ) # use own repo
38
38
self .make_alt_file (alt_path , [own_repo_path , "invalid/path" ])
39
39
rdb .update_cache ()
40
40
assert len (rdb .databases ()) == 1
Original file line number Diff line number Diff line change 11
11
class TestExamples (TestBase ):
12
12
13
13
def test_base (self ):
14
- ldb = LooseObjectDB (fixture_path ("../../.git/objects" ))
14
+ ldb = LooseObjectDB (fixture_path ("../../../. git/objects" ))
15
15
16
16
for sha1 in ldb .sha_iter ():
17
17
oinfo = ldb .info (sha1 )
You can’t perform that action at this time.
0 commit comments