(self)
| 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 |
nothing calls this directly
no test coverage detected