1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-05-31 03:53:05 +01:00
Files
supervisor/tests/utils/test_dbus.py
T
Mike Degatano bde5c938a7 Ignore veth changes (#3955)
* Reduce log noise for unmanaged interfaces

* Ignore signals with veth changes only

* Fix test and add one
2022-10-16 11:06:35 +02:00

17 lines
597 B
Python

"""Test dbus utility."""
from dbus_fast.aio.message_bus import MessageBus
import pytest
from supervisor.dbus.const import DBUS_OBJECT_BASE
from supervisor.exceptions import DBusInterfaceError
from supervisor.utils.dbus import DBus
async def test_missing_properties_interface(dbus_bus: MessageBus, dbus: list[str]):
"""Test introspection missing properties interface."""
service = await DBus.connect(
dbus_bus, "test.no.properties.interface", DBUS_OBJECT_BASE
)
with pytest.raises(DBusInterfaceError):
await service.get_properties("test.no.properties.interface")