1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Update resolved information with host info (#3560)

This commit is contained in:
Mike Degatano
2022-04-12 03:21:35 -04:00
committed by GitHub
parent 61d79b6b9c
commit a553ba5d24
3 changed files with 16 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ from supervisor.dbus.const import DBUS_SIGNAL_NM_CONNECTION_ACTIVE_CHANGED
from supervisor.dbus.hostname import Hostname
from supervisor.dbus.interface import DBusInterface
from supervisor.dbus.network import NetworkManager
from supervisor.dbus.resolved import Resolved
from supervisor.dbus.systemd import Systemd
from supervisor.dbus.timedate import TimeDate
from supervisor.docker import DockerAPI
@@ -178,11 +179,17 @@ async def systemd(dbus: DBus) -> Systemd:
@pytest.fixture
async def os_agent(dbus: DBus) -> Systemd:
async def os_agent(dbus: DBus) -> OSAgent:
"""Mock OSAgent."""
yield await mock_dbus_interface(dbus, OSAgent())
@pytest.fixture
async def resolved(dbus: DBus) -> Resolved:
"""Mock REsolved."""
yield await mock_dbus_interface(dbus, Resolved())
@pytest.fixture
async def coresys(loop, docker, network_manager, aiohttp_client, run_dir) -> CoreSys:
"""Create a CoreSys Mock."""