mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Use session dbus mocks for all tests (#4198)
* Use session dbus mocks for all tests * func instead of fn for pylint
This commit is contained in:
@@ -48,6 +48,7 @@ async def test_dbus_sethostname(
|
||||
hostname_service: HostnameService, dbus_session_bus: MessageBus
|
||||
):
|
||||
"""Set hostname on backend."""
|
||||
hostname_service.SetStaticHostname.calls.clear()
|
||||
hostname = Hostname()
|
||||
|
||||
with pytest.raises(DBusNotConnectedError):
|
||||
|
||||
Reference in New Issue
Block a user