test(openai): cover non-string guard in connection error checker

This commit is contained in:
Souravrajvi0 2026-07-20 23:14:02 +05:30 • committed by Sourav Rajvi
parent cae589b712
commit 51b5a6523d

View file

@ -728,6 +728,8 @@ def test_openai_genuine_500_still_maps_to_internal_server_error():
("Connection refused", True),
("The server had an error processing your request.", False),
("invalid_request_error", False),
(None, False),
(123, False),
],
)
def test_is_error_str_connection_error(error_str, expected):