Clean-up Minecraft Server tests (#100615)

Remove patching of getmac, fix typo
pull/99173/head^2
elmurato 2023-09-19 22:14:21 +02:00 committed by GitHub
parent c099ec19f2
commit f1a70189ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ async def test_connection_succeeded_with_host(hass: HomeAssistant) -> None:
async def test_connection_succeeded_with_ip4(hass: HomeAssistant) -> None:
"""Test config entry in case of a successful connection with an IPv4 address."""
with patch("getmac.get_mac_address", return_value="01:23:45:67:89:ab"), patch(
with patch(
"aiodns.DNSResolver.query",
side_effect=aiodns.error.DNSError,
), patch(
@ -168,7 +168,7 @@ async def test_connection_succeeded_with_ip4(hass: HomeAssistant) -> None:
async def test_connection_succeeded_with_ip6(hass: HomeAssistant) -> None:
"""Test config entry in case of a successful connection with an IPv6 address."""
with patch("getmac.get_mac_address", return_value="01:23:45:67:89:ab"), patch(
with patch(
"aiodns.DNSResolver.query",
side_effect=aiodns.error.DNSError,
), patch(

View File

@ -33,7 +33,7 @@ BINARY_SENSOR_KEYS = {"v1": "Status", "v2": "status"}
async def test_entry_migration_v1_to_v2(hass: HomeAssistant) -> None:
"""Test entry migratiion from version 1 to 2."""
"""Test entry migration from version 1 to 2."""
# Create mock config entry.
config_entry_v1 = MockConfigEntry(