(
github_env: None, redis_data: dict[str, str]
)
| 372 | |
| 373 | |
| 374 | def test_handle_github_error_without_response( |
| 375 | github_env: None, redis_data: dict[str, str] |
| 376 | ) -> None: |
| 377 | exc = requests_exceptions.ConnectionError() |
| 378 | exc.response = None |
| 379 | github.handle_github_error(exc, 'no-resp-action') |
| 380 | assert redis_data['github-api-error'] == 'no-resp-action' |
| 381 | |
| 382 | |
| 383 | def test_handle_github_error_logs_at_warning_not_error( |
nothing calls this directly
no outgoing calls
no test coverage detected