(self)
| 295 | self.assertEqual(check_run.output.annotations_count, 1) |
| 296 | |
| 297 | def testUpdateCheckRunAll(self): |
| 298 | check_run = self.testrepo.get_check_run(1279259090) |
| 299 | check_run.edit( |
| 300 | name="update_all_params", |
| 301 | head_sha="0283d46537193f1fed7d46859f15c5304b9836f9", |
| 302 | details_url="https://www.example-url.com", |
| 303 | external_id="49", |
| 304 | started_at=datetime(2020, 10, 20, 1, 10, 20), |
| 305 | completed_at=datetime(2020, 10, 20, 2, 20, 30), |
| 306 | actions=[ |
| 307 | { |
| 308 | "label": "Hello World!", |
| 309 | "identifier": "identity", |
| 310 | "description": "Hey! This is a test", |
| 311 | } |
| 312 | ], |
| 313 | ) |
| 314 | self.assertEqual(check_run.name, "update_all_params") |
| 315 | self.assertEqual(check_run.head_sha, "0283d46537193f1fed7d46859f15c5304b9836f9") |
| 316 | self.assertEqual(check_run.details_url, "https://www.example-url.com") |
| 317 | self.assertEqual(check_run.external_id, "49") |
| 318 | self.assertEqual( |
| 319 | check_run.started_at, |
| 320 | datetime(2020, 10, 20, 1, 10, 20, tzinfo=timezone.utc), |
| 321 | ) |
| 322 | self.assertEqual( |
| 323 | check_run.completed_at, |
| 324 | datetime(2020, 10, 20, 2, 20, 30, tzinfo=timezone.utc), |
| 325 | ) |
| 326 | |
| 327 | def testCheckRunAnnotationAttributes(self): |
| 328 | check_run = self.testrepo.get_check_run(1280914700) |
nothing calls this directly
no test coverage detected