Skip to content

Commit 27ec017

Browse files
committed
fix: Update bad asserts found by co-pilot
1 parent c35bd19 commit 27ec017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/devices/traits/v1/test_dnd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def test_set_dnd_timer_success(
9494
# Verify the RPC call was made correctly with dataclass converted to dict
9595

9696
expected_params = [22, 0, 8, 0]
97-
mock_rpc_channel.send_command.mock_calls = [
97+
assert mock_rpc_channel.send_command.mock_calls == [
9898
call(RoborockCommand.SET_DND_TIMER, params=expected_params),
9999
call(RoborockCommand.GET_DND_TIMER),
100100
]
@@ -127,7 +127,7 @@ async def test_clear_dnd_timer_success(dnd_trait: DoNotDisturbTrait, mock_rpc_ch
127127
await dnd_trait.clear_dnd_timer()
128128

129129
# Verify the RPC call was made correctly
130-
mock_rpc_channel.send_command.mock_calls = [
130+
assert mock_rpc_channel.send_command.mock_calls == [
131131
call(RoborockCommand.CLOSE_DND_TIMER),
132132
call(RoborockCommand.GET_DND_TIMER),
133133
]

0 commit comments

Comments
 (0)