(self)
| 325 | ) |
| 326 | |
| 327 | def testCheckRunAnnotationAttributes(self): |
| 328 | check_run = self.testrepo.get_check_run(1280914700) |
| 329 | self.assertEqual(check_run.name, "annotations") |
| 330 | annotation = check_run.get_annotations()[0] |
| 331 | self.assertEqual(annotation.annotation_level, "warning") |
| 332 | self.assertIsNone(annotation.end_column) |
| 333 | self.assertEqual(annotation.end_line, 2) |
| 334 | self.assertEqual(annotation.message, "Check your spelling for 'banaas'.") |
| 335 | self.assertEqual(annotation.path, "README.md") |
| 336 | self.assertEqual(annotation.raw_details, "Do you mean 'bananas' or 'banana'?") |
| 337 | self.assertIsNone(annotation.start_column) |
| 338 | self.assertEqual(annotation.start_line, 2) |
| 339 | self.assertEqual(annotation.title, "Spell Checker") |
| 340 | self.assertEqual( |
| 341 | annotation.blob_href, |
| 342 | "https://github.com/dhruvmanila/pygithub-testing/blob/0283d46537193f1fed7d46859f15c5304b9836f9/README.md", |
| 343 | ) |
| 344 | self.assertEqual(repr(annotation), 'CheckRunAnnotation(title="Spell Checker")') |
| 345 | |
| 346 | def testListCheckRunAnnotations(self): |
| 347 | check_run = self.testrepo.get_check_run(1280914700) |
nothing calls this directly
no test coverage detected