Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde4cfcc

Browse files
committed
Added test to verify blame commits can have multiple lines.
Seegitpython-developers#47
1 parent987f9bb commitde4cfcc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎git/test/test_repo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,16 @@ def test_should_display_blame_information(self, git):
299299

300300
deftest_blame_real(self):
301301
c=0
302+
nml=0# amount of multi-lines per blame
302303
foriteminself.rorepo.head.commit.tree.traverse(
303304
predicate=lambdai,d:i.type=='blob'andi.path.endswith('.py')):
304305
c+=1
305-
self.rorepo.blame(self.rorepo.head,item.path)
306+
307+
forbinself.rorepo.blame(self.rorepo.head,item.path):
308+
nml+=int(len(b[1])>1)
306309
# END for each item to traverse
307-
assertc
310+
assertc,"Should have executed at least one blame command"
311+
assertnml,"There should at least be one blame commit that contains multiple lines"
308312

309313
deftest_untracked_files(self):
310314
base=self.rorepo.working_tree_dir

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp