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

Method testCreateCommentOnFilePosition

tests/Commit.py:142–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140 self.assertEqual(comment.position, None)
141
142 def testCreateCommentOnFilePosition(self):
143 comment = self.commit.create_comment(
144 "Comment also created by PyGithub",
145 path="codegen/templates/GithubObject.MethodBody.UseResult.py",
146 position=3,
147 )
148 self.assertEqual(comment.id, 1362001)
149 self.assertEqual(comment.line, None)
150 self.assertEqual(comment.path, "codegen/templates/GithubObject.MethodBody.UseResult.py")
151 self.assertEqual(comment.position, 3)
152
153 def testCreateStatusWithoutOptionalParameters(self):
154 status = self.commit.create_status("pending")

Callers

nothing calls this directly

Calls 1

create_commentMethod · 0.45

Tested by

no test coverage detected