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

Method testGetContentsDir

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

Source from the content-addressed store, hash-verified

1714 self.assertEqual(len(self.repo.get_contents("doc/ReferenceOfClasses.md").content), 38121)
1715
1716 def testGetContentsDir(self):
1717 contents = self.repo.get_contents("")
1718 self.assertTrue(isinstance(contents, list))
1719 self.assertEqual(len(contents), 14)
1720
1721 def testGetContentsDirWithSlash(self):
1722 contents = self.repo.get_contents("/")

Callers

nothing calls this directly

Calls 1

get_contentsMethod · 0.80

Tested by

no test coverage detected