Skip to content

Commit

Permalink
Update assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Jan 7, 2025
1 parent 7f18792 commit a99ac1d
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions tests/CheckRun.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,27 @@ def testAttributes(self):
self.assertEqual(self.check_run.app.id, 15368)
self.assertEqual(self.check_run.app.slug, "github-actions")
self.assertIsNone(self.check_run.check_suite)
self.assertEqual(self.check_run.check_suite_id, 1110219217)
self.assertEqual(
self.check_run.completed_at,
datetime(2020, 8, 28, 4, 21, 21, tzinfo=timezone.utc),
)
self.assertEqual(self.check_run.check_suite_id, 32504127411)
self.assertEqual(self.check_run.completed_at, datetime(2024, 12, 28, 16, 53, 10, tzinfo=timezone.utc))
self.assertEqual(self.check_run.conclusion, "success")
self.assertIsNone(self.check_run.deployment)
self.assertEqual(
self.check_run.details_url,
"https://github.com/PyGithub/PyGithub/runs/1039891953",
self.check_run.details_url, "https://github.com/PyGithub/PyGithub/actions/runs/12528252236/job/34942661139"
)
self.assertEqual(self.check_run.external_id, "6b512fe7-587c-5ecc-c4a3-03b7358c152d")
self.assertEqual(self.check_run.head_sha, "6bc9ecc8c849df4e45e60c1e6a5df8876180a20a")
self.assertEqual(self.check_run.external_id, "8ece7711-e8e8-5d87-8f8a-6791d424ecd6")
self.assertEqual(self.check_run.head_sha, "10a7135a04f71e6101f8b013aded8a662d08fd1f")
self.assertEqual(
self.check_run.html_url,
"https://github.com/PyGithub/PyGithub/runs/1039891953",
self.check_run.html_url, "https://github.com/PyGithub/PyGithub/actions/runs/12528252236/job/34942661139"
)
self.assertEqual(self.check_run.id, 1039891953)
self.assertEqual(self.check_run.name, "test (Python 3.8)")
self.assertEqual(self.check_run.node_id, "MDg6Q2hlY2tSdW4xMDM5ODkxOTUz")
self.assertEqual(self.check_run.output.annotations_count, 0)
self.assertEqual(self.check_run.id, 34942661139)
self.assertEqual(self.check_run.name, "test (Python 3.8 on Ubuntu)")
self.assertEqual(self.check_run.node_id, "CR_kwDOADYVqs8AAAAIIr6yEw")
self.assertEqual(self.check_run.output.annotations_count, 1)
self.assertEqual(len(self.check_run.pull_requests), 0)
self.assertEqual(
self.check_run.started_at,
datetime(2020, 8, 28, 4, 20, 27, tzinfo=timezone.utc),
)
self.assertEqual(self.check_run.started_at, datetime(2024, 12, 28, 16, 51, 59, tzinfo=timezone.utc))
self.assertEqual(self.check_run.status, "completed")
self.assertEqual(
self.check_run.url,
"https://api.github.com/repos/PyGithub/PyGithub/check-runs/1039891953",
)
self.assertEqual(repr(self.check_run), 'CheckRun(id=1039891953, conclusion="success")')
self.assertEqual(self.check_run.url, "https://api.github.com/repos/PyGithub/PyGithub/check-runs/34942661139")
self.assertEqual(repr(self.check_run), 'CheckRun(id=34942661139, conclusion="success")')

def testCheckRunOutputAttributes(self):
check_run_output = self.repo.get_check_run(1039891917).output
Expand Down

0 comments on commit a99ac1d

Please sign in to comment.