(
github_env: None, redis_data: dict[str, str]
)
| 362 | |
| 363 | |
| 364 | def test_handle_github_error_with_response( |
| 365 | github_env: None, redis_data: dict[str, str] |
| 366 | ) -> None: |
| 367 | inner_resp = MagicMock() |
| 368 | inner_resp.content = b'rate limited' |
| 369 | exc = requests_exceptions.HTTPError(response=inner_resp) |
| 370 | github.handle_github_error(exc, 'test-action') |
| 371 | assert redis_data['github-api-error'] == 'test-action' |
| 372 | |
| 373 | |
| 374 | def test_handle_github_error_without_response( |
nothing calls this directly
no outgoing calls
no test coverage detected