mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-10 11:29:51 +00:00
Bump pre-commit ruff to 0.5.7 and reformat (#5242)
It seems that the codebase is not formatted with the latest ruff version. This PR reformats the codebase with ruff 0.5.7.
This commit is contained in:
@@ -41,14 +41,16 @@ async def test_load(coresys: CoreSys):
|
||||
await coresys.updater.load()
|
||||
|
||||
need_update = PropertyMock(return_value=True)
|
||||
with patch.object(DockerInterface, "attach") as attach, patch.object(
|
||||
DockerInterface, "update"
|
||||
) as update, patch.object(Supervisor, "need_update", new=need_update), patch.object(
|
||||
PluginBase, "need_update", new=PropertyMock(return_value=True)
|
||||
), patch.object(
|
||||
PluginBase,
|
||||
"version",
|
||||
new=PropertyMock(return_value=AwesomeVersion("1970-01-01")),
|
||||
with (
|
||||
patch.object(DockerInterface, "attach") as attach,
|
||||
patch.object(DockerInterface, "update") as update,
|
||||
patch.object(Supervisor, "need_update", new=need_update),
|
||||
patch.object(PluginBase, "need_update", new=PropertyMock(return_value=True)),
|
||||
patch.object(
|
||||
PluginBase,
|
||||
"version",
|
||||
new=PropertyMock(return_value=AwesomeVersion("1970-01-01")),
|
||||
),
|
||||
):
|
||||
await coresys.plugins.load()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user