(proxy_server)
| 61 | |
| 62 | @pytest.mark.asyncio |
| 63 | async def test_handle_client_exception(proxy_server): |
| 64 | reader = AsyncMock() |
| 65 | writer = AsyncMock() |
| 66 | reader.readline.side_effect = Exception("Read error") |
| 67 | |
| 68 | # Should log error but not raise (unless CancelledError) |
| 69 | await proxy_server.handle_client(reader, writer) |
| 70 | |
| 71 | writer.close.assert_called() |
| 72 | |
| 73 | |
| 74 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected