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

Method testGetContentsWithRef

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

Source from the content-addressed store, hash-verified

1724 self.assertEqual(len(contents), 14)
1725
1726 def testGetContentsWithRef(self):
1727 self.assertEqual(
1728 len(self.repo.get_readme(ref="refs/heads/topic/ExperimentOnDocumentation").content),
1729 6747,
1730 )
1731 self.assertEqual(
1732 len(
1733 self.repo.get_contents(
1734 "doc/ReferenceOfClasses.md",
1735 ref="refs/heads/topic/ExperimentOnDocumentation",
1736 ).content
1737 ),
1738 43929,
1739 )
1740
1741 def testCreateDeployment(self):
1742 deployment = self.repo.create_deployment(

Callers

nothing calls this directly

Calls 2

get_readmeMethod · 0.80
get_contentsMethod · 0.80

Tested by

no test coverage detected