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

Method testGetAlertsWithArguments

tests/CodeScanAlert.py:156–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 self.assertEqual(repr(alert), 'CodeScanAlert(number=1, id="actions/missing-workflow-permissions")')
155
156 def testGetAlertsWithArguments(self):
157 alerts = self.repo.get_codescan_alerts(
158 tool_name="CodeQL", ref="refs/heads/main", sort="created", direction="asc", state="fixed", severity="medium"
159 )
160 # Note, this doesn't test "tool_guid" or "pr" arguments as they are not found in the PyGithub repo test data
161 self.assertEqual(
162 len(list(alerts)), 10
163 ) # Update this when more alerts are added to the PyGithub repo and marked as fixed

Callers

nothing calls this directly

Calls 1

get_codescan_alertsMethod · 0.45

Tested by

no test coverage detected