1
0
mirror of https://github.com/home-assistant/core.git synced 2025-07-23 05:07:41 +00:00
2023-09-12 21:12:01 +02:00

15 lines
317 B
Python

"""Conftest for speedtestdotnet."""
from unittest.mock import patch
import pytest
from . import MOCK_SERVERS
@pytest.fixture
def mock_api():
"""Mock entry setup."""
with patch("speedtest.Speedtest") as mock_api:
mock_api.return_value.get_servers.return_value = MOCK_SERVERS
yield mock_api