File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
from git .stats import Stats
21
21
from git .tag import Tag
22
22
from git .tree import Tree
23
+ from git .submodule import Submodule
23
24
from git .utils import dashify
24
25
from git .utils import touch
25
26
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def test_slash_with_commits(self, git):
92
92
93
93
tree = self .repo .tree ('master' )
94
94
95
- assert_none ( tree / 'bar' )
95
+ assert_equal ( 'd35b34c6e931b9da8f6941007a92c9c9a9b0141a' , ( tree / 'bar' ). id )
96
96
assert_equal ('2afb47bcedf21663580d5e6d2f406f08f3f65f19' , (tree / 'foo' ).id )
97
97
assert_equal ('f623ee576a09ca491c4a27e48c0dfe04be5f4a2e' , (tree / 'baz' ).id )
98
98
@@ -133,7 +133,7 @@ def test_dict_with_commits(self, git):
133
133
134
134
tree = self .repo .tree ('master' )
135
135
136
- assert_none ( tree . get ( 'bar' ) )
136
+ assert_equal ( 'd35b34c6e931b9da8f6941007a92c9c9a9b0141a' , tree [ 'bar' ]. id )
137
137
assert_equal ('2afb47bcedf21663580d5e6d2f406f08f3f65f19' , tree ['foo' ].id )
138
138
assert_equal ('f623ee576a09ca491c4a27e48c0dfe04be5f4a2e' , tree ['baz' ].id )
139
139
@@ -146,7 +146,7 @@ def test_dict_with_non_existant_file(self, git):
146
146
git .return_value = fixture ('ls_tree_commit' )
147
147
148
148
tree = self .repo .tree ('master' )
149
- tree ['bar ' ]
149
+ tree ['notthere ' ]
150
150
151
151
def test_repr (self ):
152
152
tree = Tree (self .repo , id = 'abc' )
You can’t perform that action at this time.
0 commit comments