Fix deprecated code (#14681)
This commit is contained in:
1 parent
7d2563eb1f
commit
e746b92e0e
3 files changed
+8
-8
No files matched your search
@@ -210,7 +210,7 @@ def test_cloud_connect_invalid_auth(mock_client, caplog, mock_cloud):
|
||||
"""Test invalid auth detected by server."""
|
||||
conn = iot.CloudIoT(mock_cloud)
|
||||
mock_client.receive.side_effect = \
|
||||
client_exceptions.WSServerHandshakeError(None, None, code=401)
|
||||
client_exceptions.WSServerHandshakeError(None, None, status=401)
|
||||
|
||||
yield from conn.connect()
|
||||
|
||||
|
||||
Reference in new issue
Block a user