| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -299,12 +299,16 @@ def test_should_display_blame_information(self, git): | |||
| 299 | 299 | ||
| 300 | 300 | def test_blame_real(self): | |
| 301 | 301 | c = 0 | |
| 302 | + nml = 0 # amount of multi-lines per blame | ||
| 302 | 303 | for item in self.rorepo.head.commit.tree.traverse( | |
| 303 | 304 | predicate=lambda i, d: i.type == 'blob' and i.path.endswith('.py')): | |
| 304 | 305 | c += 1 | |
| 305 | - 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) | ||
| 306 | 309 | # END for each item to traverse | |
| 307 | - 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" | ||
| 308 | 312 | ||
| 309 | 313 | def test_untracked_files(self): | |
| 310 | 314 | base = self.rorepo.working_tree_dir | |
| Back | FazBrowse Home | New Git URL |
0 commit comments