Skip to content

Commit 23d8ee8

Browse files
committed
fix: update to make build pass
Signed-off-by: Samantha Coyle <sam@diagrid.io>
1 parent 7d8ec65 commit 23d8ee8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/issues/test_streamable_http_405_get_stream.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,17 @@ async def test_405_get_stream_does_not_hang(caplog: pytest.LogCaptureFixture):
9696

9797
# Verify the 405 was logged and no retries occurred
9898
log_messages = [record.getMessage() for record in caplog.records]
99-
assert any("Server does not support GET for SSE events (405 Method Not Allowed)" in msg for msg in log_messages), (
99+
assert any(
100+
"Server does not support GET for SSE events (405 Method Not Allowed)" in msg
101+
for msg in log_messages
102+
), ( # pragma: no branch
100103
f"Expected 405 log message not found in: {log_messages}"
101104
)
102105

103106
reconnect_messages = [msg for msg in log_messages if "reconnecting" in msg.lower()]
104-
assert len(reconnect_messages) == 0, f"Should not retry on 405, but found: {reconnect_messages}"
107+
assert len(reconnect_messages) == 0, ( # pragma: no branch
108+
f"Should not retry on 405, but found: {reconnect_messages}"
109+
)
105110

106111

107112
@pytest.mark.anyio

0 commit comments

Comments
 (0)