MCPcopy Create free account
hub / github.com/Screenly/Anthias / test_handle_github_error_with_response

Function test_handle_github_error_with_response

tests/test_github.py:364–371  ·  view source on GitHub ↗
(
    github_env: None, redis_data: dict[str, str]
)

Source from the content-addressed store, hash-verified

362
363
364def 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
374def test_handle_github_error_without_response(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected