Skip to content

Commit bf24d48

Browse files
committed
style: Fix formatting of tests
1 parent cd6525b commit bf24d48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import json
2+
from collections.abc import AsyncGenerator
23
from queue import Queue
34
from typing import Any
45
from unittest.mock import patch
5-
from collections.abc import AsyncGenerator
66

77
import paho.mqtt.client as mqtt
88
import pytest
@@ -147,7 +147,9 @@ async def test_get_prop():
147147

148148

149149
@pytest.fixture(name="connected_mqtt_client")
150-
async def connected_mqtt_client_fixture(response_queue: Queue, mqtt_client: RoborockMqttClientV1) -> AsyncGenerator[RoborockMqttClientV1, None]:
150+
async def connected_mqtt_client_fixture(
151+
response_queue: Queue, mqtt_client: RoborockMqttClientV1
152+
) -> AsyncGenerator[RoborockMqttClientV1, None]:
151153
response_queue.put(mqtt_packet.gen_connack(rc=0, flags=2))
152154
response_queue.put(mqtt_packet.gen_suback(1, 0))
153155
await mqtt_client.async_connect()
@@ -156,9 +158,7 @@ async def connected_mqtt_client_fixture(response_queue: Queue, mqtt_client: Robo
156158
await mqtt_client.async_disconnect()
157159

158160

159-
async def test_async_connect(
160-
received_requests: Queue, connected_mqtt_client: RoborockMqttClientV1
161-
) -> None:
161+
async def test_async_connect(received_requests: Queue, connected_mqtt_client: RoborockMqttClientV1) -> None:
162162
"""Test connecting to the MQTT broker."""
163163

164164
assert connected_mqtt_client.is_connected()

0 commit comments

Comments
 (0)