test_find_by_address
1 parent a52fcaf commit 59455c7Copy full SHA for 59455c7
1 file changed
tests/test_scanner2.py
@@ -36,6 +36,17 @@ async def test_discover(bumble_peripheral: Device):
36
assert filtered_devices[0][1].local_name == bumble_peripheral.name
37
38
39
+@pytest.mark.asyncio
40
+async def test_find_by_address(bumble_peripheral: Device):
41
+ """Scanner is finding the device by address."""
42
+ await configure_and_power_on_bumble_peripheral(bumble_peripheral)
43
+
44
+ device = await BleakScanner.find_device_by_address(
45
+ bumble_peripheral.static_address.to_string(), backend=BleakScannerBumble
46
+ )
47
+ assert device is not None
48
49
50
@pytest.mark.asyncio
51
@pytest.mark.parametrize("service_uuid_available", [True, False])
52
async def test_discover_filter_by_service_uuid(
0 commit comments