MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testGetCommitsWithAuthor

Method testGetCommitsWithAuthor

tests/Repository.py:1130–1147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1128 )
1129
1130 def testGetCommitsWithAuthor(self):
1131 self.g.per_page = 5
1132 akfish = self.g.get_user("AKFish")
1133 self.assertListKeyBegin(
1134 self.repo.get_commits(author="jacquev6"),
1135 lambda c: c.sha,
1136 ["54f718a15770579a37ffbe7ae94ad30003407786"],
1137 )
1138 self.assertListKeyBegin(
1139 self.repo.get_commits(author=akfish),
1140 lambda c: c.sha,
1141 ["38b137fb37c0fdc74f8802a4184518e105db9121"],
1142 )
1143 self.assertListKeyBegin(
1144 self.repo.get_commits(author="m.ki2@laposte.net"),
1145 lambda c: c.sha,
1146 ["ab674dfcbc86c70bc32d9ecbe171b48a5694c337"],
1147 )
1148
1149 def testGetDownloads(self):
1150 self.assertListKeyEqual(self.repo.get_downloads(), lambda d: d.id, [245143])

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.80
assertListKeyBeginMethod · 0.80
get_commitsMethod · 0.45

Tested by

no test coverage detected