1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-03 21:49:17 +00:00
2022-11-18 16:27:20 +01:00

14 lines
305 B
Python

"""Test fixtures for Wake on Lan."""
from __future__ import annotations
from unittest.mock import AsyncMock, patch
import pytest
@pytest.fixture
def mock_send_magic_packet() -> AsyncMock:
"""Mock magic packet."""
with patch("wakeonlan.send_magic_packet") as mock_send:
yield mock_send