Update transport close/reset behaviour

This commit is contained in:
sdb9696
2024-01-23 17:11:23 +00:00
parent e233e377ad
commit 0e874a35f1
12 changed files with 87 additions and 43 deletions

View File

@@ -54,9 +54,10 @@ class _mock_response:
[
(Exception("dummy exception"), False),
(aiohttp.ServerTimeoutError("dummy exception"), True),
(aiohttp.ServerDisconnectedError("dummy exception"), True),
(aiohttp.ClientOSError("dummy exception"), True),
],
ids=("Exception", "SmartDeviceException", "ConnectError"),
ids=("Exception", "SmartDeviceException", "DisconnectError", "ConnectError"),
)
@pytest.mark.parametrize("transport_class", [AesTransport, KlapTransport])
@pytest.mark.parametrize("protocol_class", [IotProtocol, SmartProtocol])