mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
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:
parent
d002a3defc
commit
6b9f5a0140
1 changed files with 11 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue