Skip to content

Commit 5e0eab4

Browse files
committed
CR: Make response queue instance-scoped (avoid cross-test bleed).
1 parent 2c0242b commit 5e0eab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_usb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ async def mkdir(self, path: str) -> None:
228228
class MockStickController:
229229
"""Mock stick controller."""
230230

231-
send_response: list = []
231+
def __init__(self) -> None:
232+
"""Initialize MockStickController."""
233+
self.send_response: list[pw_responses.PlugwiseResponse] = []
232234

233235
async def subscribe_to_messages(
234236
self,

0 commit comments

Comments
 (0)