Remove unnecessary patch from evohome tests (#126760)

This commit is contained in:
David Bonnes 2024-09-25 20:52:03 +01:00 committed by GitHub
parent 4f0211cdd8
commit 90dcb02429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,14 +100,6 @@ def mock_get_factory(install: str) -> Callable:
return mock_get return mock_get
async def block_request(
self: Broker, method: HTTPMethod, url: str, **kwargs: Any
) -> None:
"""Fail if the code attempts any actual I/O via aiohttp."""
pytest.fail(f"Unexpected request: {method} {url}")
@pytest.fixture @pytest.fixture
def config() -> dict[str, str]: def config() -> dict[str, str]:
"Return a default/minimal configuration." "Return a default/minimal configuration."
@ -117,8 +109,6 @@ def config() -> dict[str, str]:
} }
@patch("evohomeasync.broker.Broker._make_request", block_request)
@patch("evohomeasync2.broker.Broker._client", block_request)
async def setup_evohome( async def setup_evohome(
hass: HomeAssistant, hass: HomeAssistant,
test_config: dict[str, str], test_config: dict[str, str],