| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -356,7 +356,6 @@ def testRepoCommitGetFilesDefault(self): | |||
| 356 | 356 | if lazy | |
| 357 | 357 | else [ | |
| 358 | 358 | "/repos/PyGithub/PyGithub", | |
| 359 | - # TODO: is that right? | ||
| 360 | 359 | "/repos/PyGithub/PyGithub/commits/3253acaabd86de12b73d0a24c98eb9c13d1987b5?page=1", | |
| 361 | 360 | ] | |
| 362 | 361 | ) | |
@@ -525,24 +524,14 @@ def testRepoComparisonCommitsFiles(self): | |||
| 525 | 524 | self.assertListKeyEqual( | |
| 526 | 525 | requests, | |
| 527 | 526 | lambda r: r.url, | |
| 528 | - ( | ||
| 529 | - [ | ||
| 530 | - "/repos/PyGithub/PyGithub/compare/19e1c5032397a95c58fe25760723ffc24cbe0ec8...4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 531 | - # TODO: is that right? | ||
| 532 | - "/repositories/3544490/compare/19e1c5032397a95c58fe25760723ffc24cbe0ec8...4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=2&per_page=2", | ||
| 533 | - "/repos/PyGithub/PyGithub/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 534 | - "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=2&per_page=2", | ||
| 535 | - "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=3&per_page=2", | ||
| 536 | - ] | ||
| 537 | - if lazy | ||
| 538 | - else [ | ||
| 539 | - "/repos/PyGithub/PyGithub", | ||
| 540 | - "/repos/PyGithub/PyGithub/compare/19e1c5032397a95c58fe25760723ffc24cbe0ec8...4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 541 | - "/repos/PyGithub/PyGithub/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 542 | - "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=2&per_page=2", | ||
| 543 | - "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=3&per_page=2", | ||
| 544 | - ] | ||
| 545 | - ), | ||
| 527 | + ([] if lazy else ["/repos/PyGithub/PyGithub"]) | ||
| 528 | + + [ | ||
| 529 | + "/repos/PyGithub/PyGithub/compare/19e1c5032397a95c58fe25760723ffc24cbe0ec8...4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 530 | + "/repositories/3544490/compare/19e1c5032397a95c58fe25760723ffc24cbe0ec8...4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=2&per_page=2", | ||
| 531 | + "/repos/PyGithub/PyGithub/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=1&per_page=2", | ||
| 532 | + "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=2&per_page=2", | ||
| 533 | + "/repositories/3544490/commits/4bf07a2f5123f78fc6759bc2ade0c74154c1ba86?page=3&per_page=2", | ||
| 534 | + ], | ||
| 546 | 535 | ) | |
| 547 | 536 | ||
| 548 | 537 | def testRepoComparisonCommitsFilesWithPerPage(self): | |
@@ -846,6 +835,3 @@ def _initAttributes(self) -> None: | |||
| 846 | 835 | ||
| 847 | 836 | def _useAttributes(self, attributes: Any) -> None: | |
| 848 | 837 | pass | |
| 849 | - | ||
| 850 | - | ||
| 851 | - # TODO check replay data respect per_page | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments