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

Method testCreateCommentOnFileLine

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

Source from the content-addressed store, hash-verified

129 self.assertEqual(comment.position, None)
130
131 def testCreateCommentOnFileLine(self):
132 comment = self.commit.create_comment(
133 "Comment created by PyGithub",
134 path="codegen/templates/GithubObject.MethodBody.UseResult.py",
135 line=26,
136 )
137 self.assertEqual(comment.id, 1362000)
138 self.assertEqual(comment.line, 26)
139 self.assertEqual(comment.path, "codegen/templates/GithubObject.MethodBody.UseResult.py")
140 self.assertEqual(comment.position, None)
141
142 def testCreateCommentOnFilePosition(self):
143 comment = self.commit.create_comment(

Callers

nothing calls this directly

Calls 1

create_commentMethod · 0.45

Tested by

no test coverage detected