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

Method testGetPageOnSearchUsers

tests/Search.py:96–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.assertEqual(users[0].score, 1.0)
95
96 def testGetPageOnSearchUsers(self):
97 users = self.g.search_users("", location="Berlin")
98 self.assertEqual(
99 [u.login for u in users.get_page(7)],
100 [
101 "ursachec",
102 "bitboxer",
103 "fs111",
104 "michenriksen",
105 "witsch",
106 "booo",
107 "mortice",
108 "r0man",
109 "MikeBild",
110 "mhagger",
111 "bkw",
112 "fwbrasil",
113 "mschneider",
114 "lydiapintscher",
115 "asksven",
116 "iamtimm",
117 "sneak",
118 "kr1sp1n",
119 "Feh",
120 "GordonLesti",
121 "annismckenzie",
122 "eskimoblood",
123 "tsujigiri",
124 "riethmayer",
125 "lauritzthamsen",
126 "scotchi",
127 "peritor",
128 "toto",
129 "hwaxxer",
130 "lukaszklis",
131 ],
132 )
133
134 def testSearchRepos(self):
135 repos = self.g.search_repositories("github", sort="stars", order="desc", language="Python")

Callers

nothing calls this directly

Calls 2

search_usersMethod · 0.80
get_pageMethod · 0.80

Tested by

no test coverage detected