mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Ensure bluetooth auto recovery does not run in tests (#105841)
This commit is contained in:
@@ -1545,7 +1545,7 @@ async def mock_enable_bluetooth(
|
|||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def mock_bluetooth_adapters() -> Generator[None, None, None]:
|
def mock_bluetooth_adapters() -> Generator[None, None, None]:
|
||||||
"""Fixture to mock bluetooth adapters."""
|
"""Fixture to mock bluetooth adapters."""
|
||||||
with patch(
|
with patch("bluetooth_auto_recovery.recover_adapter"), patch(
|
||||||
"bluetooth_adapters.systems.platform.system", return_value="Linux"
|
"bluetooth_adapters.systems.platform.system", return_value="Linux"
|
||||||
), patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"), patch(
|
), patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"), patch(
|
||||||
"bluetooth_adapters.systems.linux.LinuxAdapters.adapters",
|
"bluetooth_adapters.systems.linux.LinuxAdapters.adapters",
|
||||||
|
Reference in New Issue
Block a user