Skip to content

Commit

Permalink
fix: pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Jan 6, 2024
1 parent 52c4d63 commit c4ed36a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ async def test_can_write_characteristic(mock_bleak_client, fake_services):

@pytest.mark.asyncio
async def test_can_detect_disconnected_device(mock_bleak_client, fake_services):
ble = BLE("00:11:22:33:44:55")
mock_bleak_client.is_connected = True
with pytest.raises(DeviceDisconnectedException):
mock_bleak_client.trigger_disconnect()
await ble.get_services()

0 comments on commit c4ed36a

Please sign in to comment.