Skip to content

Commit

Permalink
ruff fmt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt committed Nov 29, 2024
1 parent 2ad7877 commit 3ff7eba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/test_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def test_allow_valid_json() -> None:
{"state": {"reported": {"signal": {"rssi": -45, "snr": 18, "noise": -63}}}}
"""
decoded = {
"state": {"reported": {"signal": {"rssi": -45, "snr": 18, "noise": -63}}}
"state": {
"reported": {"signal": {"rssi": -45, "snr": 18, "noise": -63}}
}
}
assert _decode_payload(payload) == decoded
4 changes: 3 additions & 1 deletion tests/test_roomba.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
from tests.conftest import as_message


def test_roomba_with_data(roomba: Roomba, empty_mqtt_client: mqtt.Client) -> None:
def test_roomba_with_data(
roomba: Roomba, empty_mqtt_client: mqtt.Client
) -> None:
"""Test Roomba with data."""
roomba.on_message(
empty_mqtt_client,
Expand Down
4 changes: 3 additions & 1 deletion tests/test_roomba_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@


@pytest.mark.asyncio
async def test_roomba_connect(roomba: Roomba, event_loop: BaseEventLoop) -> None:
async def test_roomba_connect(
roomba: Roomba, event_loop: BaseEventLoop
) -> None:
"""Connect to the Roomba."""
is_connected = await roomba_connect(roomba, event_loop)
await roomba_disconnect(roomba, event_loop)
Expand Down

0 comments on commit 3ff7eba

Please sign in to comment.