From 755dcd8bc67eb550d3d32e074a42dcd66b7392a2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 16 Dec 2023 06:09:03 -1000 Subject: [PATCH] Ensure bluetooth auto recovery does not run in tests (#105841) --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1e70ad48065..1948b001ad4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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",