Move mock_bluetooth* fixtures to decorator (#118846)

This commit is contained in:
epenet 2024-06-06 17:31:08 +02:00 committed by GitHub
parent 33ed4fd862
commit 632238a7f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 113 additions and 214 deletions

View file

@ -432,11 +432,11 @@ async def test_discovery_match_by_service_uuid(
}
],
)
@pytest.mark.usefixtures("mock_bluetooth_adapters")
async def test_discovery_match_by_service_uuid_and_short_local_name(
mock_async_get_bluetooth: AsyncMock,
hass: HomeAssistant,
mock_bleak_scanner_start: MagicMock,
mock_bluetooth_adapters: None,
) -> None:
"""Test bluetooth discovery match by service_uuid and short local name."""
entry = MockConfigEntry(domain="bluetooth", unique_id="00:00:00:00:00:01")