Skip to content

Commit 55885e0

Browse files
committed
new blame test added
A test which makes the actual git-blame test to be sure it really works in the face of a changing git command implementation
1 parent 1f6b8bf commit 55885e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

git/test/test_repo.py

+9
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,15 @@ def test_should_display_blame_information(self, git):
269269
assert_true( isinstance( tlist[0], basestring ) )
270270
assert_true( len( tlist ) < sum( len(t) for t in tlist ) ) # test for single-char bug
271271

272+
def test_blame_real(self):
273+
c = 0
274+
for item in self.rorepo.head.commit.tree.traverse(
275+
predicate=lambda i, d: i.type == 'blob' and i.path.endswith('.py')):
276+
c += 1
277+
b = self.rorepo.blame(self.rorepo.head, item.path)
278+
#END for each item to traverse
279+
assert b
280+
272281
def test_untracked_files(self):
273282
base = self.rorepo.working_tree_dir
274283
files = ( join_path_native(base, "__test_myfile"),

0 commit comments

Comments
 (0)