mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +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:
@@ -1,4 +1,5 @@
|
||||
"""Test check."""
|
||||
|
||||
# pylint: disable=import-error,protected-access
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
@@ -15,12 +16,15 @@ from supervisor.resolution.validate import get_valid_modules
|
||||
@pytest.fixture(autouse=True)
|
||||
def fixture_mock_dns_query():
|
||||
"""Mock aiodns query."""
|
||||
with patch(
|
||||
"supervisor.resolution.checks.dns_server.DNSResolver.query",
|
||||
new_callable=AsyncMock,
|
||||
), patch(
|
||||
"supervisor.resolution.checks.dns_server_ipv6.DNSResolver.query",
|
||||
new_callable=AsyncMock,
|
||||
with (
|
||||
patch(
|
||||
"supervisor.resolution.checks.dns_server.DNSResolver.query",
|
||||
new_callable=AsyncMock,
|
||||
),
|
||||
patch(
|
||||
"supervisor.resolution.checks.dns_server_ipv6.DNSResolver.query",
|
||||
new_callable=AsyncMock,
|
||||
),
|
||||
):
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user