mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Bump axis to v45 (#84992)
This commit is contained in:
@@ -494,7 +494,7 @@ async def test_shutdown():
|
||||
async def test_get_device_fails(hass):
|
||||
"""Device unauthorized yields authentication required error."""
|
||||
with patch(
|
||||
"axis.vapix.Vapix.request", side_effect=axislib.Unauthorized
|
||||
"axis.vapix.vapix.Vapix.request", side_effect=axislib.Unauthorized
|
||||
), pytest.raises(axis.errors.AuthenticationRequired):
|
||||
await axis.device.get_axis_device(hass, ENTRY_CONFIG)
|
||||
|
||||
@@ -502,7 +502,7 @@ async def test_get_device_fails(hass):
|
||||
async def test_get_device_device_unavailable(hass):
|
||||
"""Device unavailable yields cannot connect error."""
|
||||
with patch(
|
||||
"axis.vapix.Vapix.request", side_effect=axislib.RequestError
|
||||
"axis.vapix.vapix.Vapix.request", side_effect=axislib.RequestError
|
||||
), pytest.raises(axis.errors.CannotConnect):
|
||||
await axis.device.get_axis_device(hass, ENTRY_CONFIG)
|
||||
|
||||
@@ -510,6 +510,6 @@ async def test_get_device_device_unavailable(hass):
|
||||
async def test_get_device_unknown_error(hass):
|
||||
"""Device yield unknown error."""
|
||||
with patch(
|
||||
"axis.vapix.Vapix.request", side_effect=axislib.AxisException
|
||||
"axis.vapix.vapix.Vapix.request", side_effect=axislib.AxisException
|
||||
), pytest.raises(axis.errors.AuthenticationRequired):
|
||||
await axis.device.get_axis_device(hass, ENTRY_CONFIG)
|
||||
|
||||
Reference in New Issue
Block a user