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

Method testApiType

tests/GithubObject.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.assertDictEqual(_({"bodyHTML": "<html/>"}), {"body_html": "<html/>"})
55
56 def testApiType(self):
57 self.assertEqual(github.Repository.Repository.is_rest(), True)
58 self.assertEqual(github.Repository.Repository.is_graphql(), False)
59
60 self.assertEqual(github.RepositoryDiscussion.RepositoryDiscussion.is_rest(), False)
61 self.assertEqual(github.RepositoryDiscussion.RepositoryDiscussion.is_graphql(), True)
62
63 def testMakeUnionClassAttributeFromTypeName(self):
64 req = mock.Mock(is_not_lazy=False)

Callers

nothing calls this directly

Calls 2

is_restMethod · 0.45
is_graphqlMethod · 0.45

Tested by

no test coverage detected