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

Method testCheckRunOutputAttributes

tests/CheckRun.py:81–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.assertEqual(run.url, "/repos/lazy/repo/check-runs/42")
80
81 def testCheckRunOutputAttributes(self):
82 check_run_output = self.repo.get_check_run(1039891917).output
83 self.assertEqual(check_run_output.title, "test (Python 3.6)")
84 self.assertEqual(
85 check_run_output.summary,
86 "There are 1 failures, 0 warnings, and 0 notices.",
87 )
88 self.assertIsNone(check_run_output.text)
89 self.assertEqual(check_run_output.annotations_count, 1)
90 self.assertEqual(
91 check_run_output.annotations_url,
92 "https://api.github.com/repos/PyGithub/PyGithub/check-runs/1039891917/annotations",
93 )
94 self.assertEqual(repr(check_run_output), 'CheckRunOutput(title="test (Python 3.6)")')
95
96 def testGetCheckRunsForRef(self):
97 check_runs = self.commit.get_check_runs()

Callers

nothing calls this directly

Calls 1

get_check_runMethod · 0.80

Tested by

no test coverage detected