mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Bump axis to v46 (#85431)
This commit is contained in:
@@ -4,7 +4,6 @@ from unittest import mock
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import axis as axislib
|
||||
from axis.event_stream import OPERATION_INITIALIZED
|
||||
import pytest
|
||||
import respx
|
||||
|
||||
@@ -463,21 +462,6 @@ async def test_device_unknown_error(hass):
|
||||
assert hass.data[AXIS_DOMAIN] == {}
|
||||
|
||||
|
||||
async def test_new_event_sends_signal(hass):
|
||||
"""Make sure that new event send signal."""
|
||||
entry = Mock()
|
||||
entry.data = ENTRY_CONFIG
|
||||
|
||||
axis_device = axis.device.AxisNetworkDevice(hass, entry, Mock())
|
||||
|
||||
with patch.object(axis.device, "async_dispatcher_send") as mock_dispatch_send:
|
||||
axis_device.async_event_callback(action=OPERATION_INITIALIZED, event_id="event")
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert len(mock_dispatch_send.mock_calls) == 1
|
||||
assert len(mock_dispatch_send.mock_calls[0]) == 3
|
||||
|
||||
|
||||
async def test_shutdown():
|
||||
"""Successful shutdown."""
|
||||
hass = Mock()
|
||||
|
||||
Reference in New Issue
Block a user