Abri log_job raises a retriable transport error when the relay is unreachable 🟥

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 14:28:19 +00:00
parent d002a3defc
commit 6b9f5a0140

View file

@ -147,3 +147,14 @@ def test_log_job_raises_transport_error_on_http_error_status(
# Act / Assert
with pytest.raises(AbriTransportError):
client.log_job(_spec_example_request())
def test_log_job_raises_transport_error_when_the_relay_is_unreachable(
client: AbriClient, mock_session: MagicMock
) -> None:
# Arrange
mock_session.post.side_effect = requests.ConnectionError("connection refused")
# Act / Assert
with pytest.raises(AbriTransportError):
client.log_job(_spec_example_request())