mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Ensure bluetooth auto recovery does not run in tests (#105841)
This commit is contained in:
parent
8549311d1d
commit
755dcd8bc6
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user