Skip to content

Commit c32af0b

Browse files
committed
chore: fix tests
1 parent cd38486 commit c32af0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/devices/traits/v1/test_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def test_send_command_success(command_trait: CommandTrait) -> None:
2727
result = await command_trait.send(RoborockCommand.APP_START)
2828

2929
# Verify the result
30-
assert result is None
30+
assert result == {'result': 'ok'}
3131

3232
# Verify the RPC call was made correctly
3333
mock_rpc_channel.send_command.assert_called_once_with(RoborockCommand.APP_START, params=None)
@@ -44,7 +44,7 @@ async def test_send_command_with_params(command_trait: CommandTrait) -> None:
4444
result = await command_trait.send(RoborockCommand.APP_SEGMENT_CLEAN, params)
4545

4646
# Verify the result
47-
assert result is None
47+
assert result == {'result': 'ok'}
4848

4949
# Verify the RPC call was made correctly
5050
mock_rpc_channel.send_command.assert_called_once_with(RoborockCommand.APP_SEGMENT_CLEAN, params=params)

0 commit comments

Comments
 (0)