(self)
| 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") |
nothing calls this directly
no test coverage detected