MCPcopy
hub / github.com/PyGithub/PyGithub / testMutationClass

Method testMutationClass

tests/GraphQl.py:202–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.assertEqual(data, {"organization": {"name": "PyGithub"}})
201
202 def testMutationClass(self):
203 requester = self.g._Github__requester
204 org = requester.graphql_named_mutation_class(
205 "followOrganization",
206 {"organizationId": "O_kgDOAKxBpA"},
207 "organization { name }",
208 "organization",
209 github.Organization.Organization,
210 )
211 self.assertEqual(org.name, "PyGithub")
212
213 def testPaginationAndRestIntegration(self):
214 repo = self.g.get_repo("PyGithub/PyGithub")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected