fix test with cython

This commit is contained in:
J. Nick Koston 2023-11-26 14:41:57 -06:00
parent 6b18b0b33c
commit ae885ea35f
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -1487,7 +1487,6 @@ async def test_bluetooth_device_connect(
) -> None:
"""Test bluetooth_device_connect."""
client, connection, transport, protocol = api_client
send = client._connection.send_messages = MagicMock()
states = []
def on_bluetooth_connection_state(connected: bool, mtu: int, error: int) -> None:
@ -1512,8 +1511,8 @@ async def test_bluetooth_device_connect(
await connect_task
assert states == [(True, 23, 0)]
send.assert_called_once_with(
(
transport.write.assert_called_once_with(
generate_plaintext_packet(
BluetoothDeviceRequest(
address=1234,
request_type=method,