Ensure bluetooth auto recovery does not run in tests (#105841)

This commit is contained in:
J. Nick Koston 2023-12-16 06:09:03 -10:00 committed by GitHub
parent 8549311d1d
commit 755dcd8bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1545,7 +1545,7 @@ async def mock_enable_bluetooth(
@pytest.fixture(scope="session")
def mock_bluetooth_adapters() -> Generator[None, None, None]:
"""Fixture to mock bluetooth adapters."""
with patch(
with patch("bluetooth_auto_recovery.recover_adapter"), patch(
"bluetooth_adapters.systems.platform.system", return_value="Linux"
), patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"), patch(
"bluetooth_adapters.systems.linux.LinuxAdapters.adapters",