Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 987f9bb commit de4cfccCopy full SHA for de4cfcc
git/test/test_repo.py
@@ -299,12 +299,16 @@ def test_should_display_blame_information(self, git):
299
300
def test_blame_real(self):
301
c = 0
302
+ nml = 0 # amount of multi-lines per blame
303
for item in self.rorepo.head.commit.tree.traverse(
304
predicate=lambda i, d: i.type == 'blob' and i.path.endswith('.py')):
305
c += 1
- self.rorepo.blame(self.rorepo.head, item.path)
306
+
307
+ for b in self.rorepo.blame(self.rorepo.head, item.path):
308
+ nml += int(len(b[1]) > 1)
309
# END for each item to traverse
- assert c
310
+ assert c, "Should have executed at least one blame command"
311
+ assert nml, "There should at least be one blame commit that contains multiple lines"
312
313
def test_untracked_files(self):
314
base = self.rorepo.working_tree_dir
0 commit comments