(self)
| 928 | ) |
| 929 | |
| 930 | def testCompareCommitPagination(self): |
| 931 | gh = github.Github( |
| 932 | auth=self.oauth_token, |
| 933 | per_page=4, |
| 934 | retry=self.retry, |
| 935 | pool_size=self.pool_size, |
| 936 | seconds_between_requests=self.seconds_between_requests, |
| 937 | seconds_between_writes=self.seconds_between_writes, |
| 938 | ) |
| 939 | repo = gh.get_repo("PyGithub/PyGithub") |
| 940 | comparison = repo.compare("v1.54", "v1.54.1") |
| 941 | self.assertEqual(comparison.status, "ahead") |
| 942 | self.assertEqual(comparison.ahead_by, 10) |
| 943 | self.assertEqual(comparison.behind_by, 0) |
| 944 | self.assertEqual(comparison.total_commits, 10) |
| 945 | self.assertEqual(len(comparison.files), 228) |
| 946 | self.assertEqual(comparison.commits.totalCount, 10) |
| 947 | self.assertListKeyEqual( |
| 948 | comparison.commits, |
| 949 | lambda c: c.sha, |
| 950 | [ |
| 951 | "fab682a5ccfc275c31ec37f1f541254c7bd780f3", |
| 952 | "9ee3afb1716c559a0b3b44e097c05f4b14ae2ab8", |
| 953 | "a806b5233f6423e0f8dacc4d04b6d81a72689bed", |
| 954 | "63e4fae997a9a5dc8c2b56907c87c565537bb28f", |
| 955 | "82c349ce3e1c556531110753831b3133334c19b7", |
| 956 | "2432cffd3b2f1a8e0b6b96d69b3dd4ded148a9f7", |
| 957 | "e113e37de1ec687c68337d777f3629251b35ab28", |
| 958 | "f299699ccd75910593d5ddf7cc6212f70c5c28b1", |
| 959 | "31a1c007808a4205bdae691385d2627c561e69ed", |
| 960 | "34d097ce473601624722b90fc5d0396011dd3acb", |
| 961 | ], |
| 962 | ) |
| 963 | |
| 964 | def testGetComments(self): |
| 965 | self.assertListKeyEqual( |
nothing calls this directly
no test coverage detected